Skip to content

Commit

Permalink
Add python 2 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Dec 20, 2018
1 parent 147b0a0 commit 7cc28f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions single-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ RUN jupyter labextension install jupyter-leaflet
RUN conda create --quiet --yes -p $CONDA_DIR/envs/python2 python=2.7 ipython ipykernel kernda && \
conda clean -tipsy

# Extra python 2 packages
RUN conda install -n python2 beautifulsoup4 jmespath && \
conda clean -tipsy

USER root

# Create a global kernelspec in the image and modify it so that it properly activates
# the python2 conda environment.
RUN $CONDA_DIR/envs/python2/bin/python -m ipykernel install && \
$CONDA_DIR/envs/python2/bin/kernda -o -y /usr/local/share/jupyter/kernels/python2/kernel.json


# Allow sudo access
RUN echo "jovyan ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-jovyan

Expand Down

0 comments on commit 7cc28f2

Please sign in to comment.