Skip to content

Commit

Permalink
Merge pull request #1 from MaastrichtU-CDS/feature/v4support
Browse files Browse the repository at this point in the history
Feature/v4support
  • Loading branch information
ivanzhovannik authored Mar 15, 2024
2 parents 3c3c6bc + a48c7ff commit 14a78c7
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 233 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Basic python3 image as base
FROM harbor2.vantage6.ai/infrastructure/algorithm-base:3.4.2
FROM harbor2.vantage6.ai/infrastructure/algorithm-base:4.2

# Change this to the package name of your project. This needs to be the same
# as what you specified for the name in the `setup.py`.
ARG PKG_NAME="v6-logistic-regression-py"

# Package name
ARG PKG_NAME="v6_logistic_regression_py"

# Install federated algorithm
# This will install your algorithm into this image.
COPY . /app
RUN pip install /app

# Tell docker to execute `docker_wrapper()` when the image is run.
# This will run your algorithm when the Docker container is started.
ENV PKG_NAME=${PKG_NAME}
CMD python -c "from vantage6.tools.docker_wrapper import docker_wrapper; docker_wrapper('${PKG_NAME}')"
CMD python -c "from vantage6.algorithm.tools.wrap import wrap_algorithm; wrap_algorithm()"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Setup the package
setup(
name='v6_logistic_regression_py',
name='v6-logistic-regression-py',
version='1.0.0',
description='Vantage6 algorithm for logistic regression',
long_description=long_description,
Expand Down
Loading

0 comments on commit 14a78c7

Please sign in to comment.