Skip to content

Commit

Permalink
image now runs if given correct environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdanziger committed Apr 8, 2021
1 parent 11ad544 commit 34148c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py38
&& conda install -y python==3.8.3 \
&& conda clean -ya

COPY ../environment.devenv.yml .
COPY environment.devenv.yml .


RUN conda env create -f environment.devenv.yml
Expand All @@ -45,6 +45,6 @@ SHELL ["conda", "run", "-n", "blue_zero", "/bin/bash", "-c" ]

# Set your entrypoint to use the conda environment as well
#ENTRYPOINT ["conda", "run", "-n", "blue_zero", "python", "run.py"]
COPY ./docker/blue_zero_entrypoint.sh .
ENTRYPOINT ["/bin/bash", "blue_zero_entrypoint.sh"]
ADD ./docker/blue_zero_entrypoint.sh entrypoint.sh
ENTRYPOINT ["/bin/bash", "entrypoint.sh"]
CMD ["bash"]
4 changes: 3 additions & 1 deletion docker/blue_zero_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ echo $N_TRAIN_BOARDS
echo $N_VAL_BOARDS
echo $BLUE_ZERO_MODE_4_K
echo $BOARD_SIZE
conda run -n blue_zero bash ./scripts/fullpipeline.sh
pushd scripts
conda run -n blue_zero bash fullpipeline.sh
popd
exec "$@"

0 comments on commit 34148c8

Please sign in to comment.