Skip to content

Commit f74ba96

Browse files
authored
use /tmp instead of /tmp2
Updated Dockerfile to copy files to /tmp instead of /tmp2 because install-conda-packages switches to jovyan for install. If there is any pip install in the environment.yml, mamba needs to write to the location of the yaml file. Since root makes /tmp2, jovyan cannot write there. Easiest is to use /tmp instead which is writeable by all.
1 parent 0ce0f73 commit f74ba96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

images/py-rocket-oceanhw-esp/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ ENV PROJ_LIB=/srv/conda/envs/notebook/share/proj
1111

1212
USER root
1313

14-
COPY . /tmp2/
14+
# install-conda changes to jovyan as user. If there are any pip installs in the env.yaml, mamba needs write access. /tmp is writeable
15+
COPY . /tmp/
1516
RUN /pyrocket_scripts/install-conda-packages.sh /tmp2/environment.yml || echo "install-conda-packages.sh failed" || true
1617
RUN /pyrocket_scripts/install-apt-packages.sh /tmp2/apt.txt || echo "install-apt-packages.sh failed" || true
1718
RUN /pyrocket_scripts/install-desktop.sh /tmp2/Desktop|| echo "setup-desktop.sh failed" || true
18-
RUN rm -rf /tmp2
19+
RUN rm -rf /tmp/*
1920

2021
USER root
2122
# install the geospatial libraries and R spatial; the rocket script are part of py-rocket-base

0 commit comments

Comments
 (0)