Skip to content

Commit

Permalink
Merge pull request #95 from nmfs-opensci/eeholmes-dev-1
Browse files Browse the repository at this point in the history
pip install jupyter desktop proxy via ONBUILD
  • Loading branch information
eeholmes authored Oct 25, 2024
2 parents 67567f5 + fb6cf37 commit 2951e74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appendix
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@ ONBUILD RUN if [ -d ${REPO_DIR}/childimage/Desktop ]; then \
fi

# Add the environment
# sometimes package solving will get rid of pip installed packages. Make sure jupyter-remote-desktop-proxy does not disappear
ONBUILD RUN echo "Checking for 'conda-lock.yml' or 'environment.yml'..." \
; cd "${REPO_DIR}/childimage/" \
; [ -d binder ] && cd binder \
; [ -d .binder ] && cd .binder \
; if test -f "conda-lock.yml" ; then echo "Using conda-lock.yml" & \
conda-lock install --name ${CONDA_ENV} \
&& pip install --no-deps jupyter-remote-desktop-proxy \
; elif test -f "environment.yml" ; then echo "Using environment.yml" & \
mamba env update --name ${CONDA_ENV} -f environment.yml \
&& pip install --no-deps jupyter-remote-desktop-proxy \
; fi \
&& mamba clean -yaf \
&& find ${CONDA_DIR} -follow -type f -name '*.a' -delete \
Expand Down

0 comments on commit 2951e74

Please sign in to comment.