Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Feb 2, 2024
1 parent b900108 commit 44f6c8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions images/conda_init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

conda init &> /dev/null
bash

8 changes: 5 additions & 3 deletions images/nasa-openscapes.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ RUN wget https://github.com/NASA-Openscapes/corn/raw/main/ci/environment.yml &&
# some teaching preferences
RUN git config --global pull.rebase false

COPY conda_init.sh /etc/profile.d/conda_init.sh
RUN bash -c "conda init"

# NOTES:
# conda (base) just means $CONDA_ENV/bin/
# conda (openscapes) means $MY_ENV, identically, $CONDA_ENV/envs/openscapes/bin/
Expand All @@ -57,3 +54,8 @@ RUN ${MY_ENV}/bin/python -m pip install ipykernel && \

ENV PATH=${MY_ENV}/bin:${PATH}

COPY conda_init.sh /etc/profile.d/conda_init.sh
RUN bash -c /etc/profile.d/conda_init.sh



0 comments on commit 44f6c8d

Please sign in to comment.