Skip to content

Commit

Permalink
Fix Conda permissions
Browse files Browse the repository at this point in the history
The base image does a chown -R on /opt/conda for the default uid 1000 but since
we run as UID 1001 we need to re-chown the conda directory.

Conda is broken at the moment so users aren't using it, but once this is turned
on `conda install` will install packages to `/opt/conda/pkgs/` which will get
wiped on reboot so maybe we need to do something similar to the pipcorn alias
that makes packages install to ~/local/
  • Loading branch information
r4vi committed Dec 21, 2018
1 parent 371d8b9 commit 6313a71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions all-spark-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ RUN conda install boto3 \
&& pip install git+https://github.com/moj-analytical-services/gluejobutils/#egg=gluejobutils \
&& mv /tmp/hdfs-site.xml /usr/local/spark/conf \
&& apt-get update && apt-get install -y $(cat /tmp/apt_packages)

RUN chown -R $NB_UID /opt/conda
3 changes: 3 additions & 0 deletions datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ COPY ./files/apt_packages /tmp/

RUN conda install boto3 \
&& apt-get update && apt-get install -y $(cat /tmp/apt_packages)

# Fix conda install for NB_UID
RUN chown -R $NB_UID /opt/conda

0 comments on commit 6313a71

Please sign in to comment.