mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-12 12:32:58 +00:00
Make subimages compatible with late user creation
* Always remain as root during install * Put kernel specs in system path, not user home * Create user work directory at startup * Note this is in 4.0 and up images, not 3.2 Contribution (c) Copyright IBM Corp. 2015
This commit is contained in:
@@ -16,8 +16,6 @@ RUN apt-get update && \
|
||||
julia \
|
||||
libnettle4 && apt-get clean
|
||||
|
||||
USER jovyan
|
||||
|
||||
# Install Python 3 packages
|
||||
RUN conda install --yes \
|
||||
'ipywidgets=4.0*' \
|
||||
@@ -59,7 +57,7 @@ RUN conda create -p $CONDA_DIR/envs/python2 python=2.7 \
|
||||
&& conda clean -yt
|
||||
RUN $CONDA_DIR/envs/python2/bin/python \
|
||||
$CONDA_DIR/envs/python2/bin/ipython \
|
||||
kernelspec install-self --user
|
||||
kernelspec
|
||||
|
||||
# R packages
|
||||
RUN conda config --add channels r
|
||||
@@ -85,6 +83,3 @@ RUN conda install --yes \
|
||||
# IJulia and Julia packages
|
||||
RUN julia -e 'Pkg.add("IJulia")'
|
||||
RUN julia -e 'Pkg.add("Gadfly")' && julia -e 'Pkg.add("RDatasets")'
|
||||
|
||||
# Switch back to root so that supervisord runs under that user
|
||||
USER root
|
||||
|
Reference in New Issue
Block a user