Skip to content

Commit

Permalink
skip conda install cil if unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored May 15, 2024
1 parent 711ce31 commit ed82ee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ COPY --from=build --link --chown=${NB_USER} /opt/SIRF-SuperBuild/INSTALL/ /opt/S

# install {SIRF-Exercises,CIL-Demos}
COPY docker/user_demos.sh /opt/scripts/
RUN BUILD_CIL="${BUILD_CIL}" bash /opt/scripts/user_demos.sh \
RUN bash /opt/scripts/user_demos.sh \
&& fix-permissions /opt/SIRF-Exercises /opt/CIL-Demos "${CONDA_DIR}" /home/${NB_USER}

# docker-stacks notebook
Expand Down
4 changes: 2 additions & 2 deletions docker/user_demos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if [ "$PYTHON" = "miniconda" ]; then
# delete GPU deps
sed -r -e '/^\s*- (astra-toolbox|tigre).*/d' -e '/^\s*- \S+.*#.*GPU/d' environment.yml > environment-sirf.yml
fi
# do not install CIL from conda if BUILD_CIL is set
if test "${BUILD_CIL:-0}" != 0; then
# do not install CIL from conda if SuperBuild already built it
if test "$(conda list '^cil$')" != "[]"; then
# delete CIL package from the environment file
sed -r -i -e '/^\s*- (cil).*/d' environment-sirf.yml
fi
Expand Down

0 comments on commit ed82ee5

Please sign in to comment.