Skip to content

Commit

Permalink
Merge pull request #21 from ministryofjustice/jupyter_startup_fix
Browse files Browse the repository at this point in the history
Stop Slow Startup
  • Loading branch information
r4vi authored Mar 7, 2019
2 parents 9e57049 + fa1b92a commit 71f78fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion all-spark-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ 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)
&& rm -rf /var/lib/apt/lists/*

RUN chown -R $NB_UID /opt/conda
RUN chown -R $NB_UID /opt/conda \
&& usermod -u $NB_UID $NB_USER
7 changes: 5 additions & 2 deletions datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ ENV CHOWN_HOME=no
COPY ./files/apt_packages /tmp/

RUN conda install boto3 \
&& apt-get update && apt-get install -y $(cat /tmp/apt_packages)
&& apt-get update \
&& apt-get install -y $(cat /tmp/apt_packages) \
&& rm -rf /var/lib/apt/lists/*

# Fix conda install for NB_UID
RUN chown -R $NB_UID /opt/conda
RUN chown -R $NB_UID /opt/conda \
&&usermod -u $NB_UID $NB_USER

0 comments on commit 71f78fa

Please sign in to comment.