Skip to content
Snippets Groups Projects
Commit 20a49cb9 authored by calrama's avatar calrama
Browse files

[jupyterhub] configurable python version, default to 3.8

parent 640806fc
No related branches found
No related tags found
No related merge requests found
Pipeline #31294 passed
...@@ -9,6 +9,8 @@ RUN apt-get update && \ ...@@ -9,6 +9,8 @@ RUN apt-get update && \
curl && \ curl && \
apt-get clean apt-get clean
ARG PYTHON_VERSION=3.8
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get update && \ apt-get update && \
apt-get install -y \ apt-get install -y \
...@@ -18,21 +20,21 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ ...@@ -18,21 +20,21 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
openjdk-11-jre-headless && \ openjdk-11-jre-headless && \
apt-get clean apt-get clean
RUN python3.7 -m pip --no-cache-dir install \ RUN python${PYTHON_VERSION} -m pip --no-cache-dir install \
jupyterlab \ jupyterlab \
jupyterhub \ jupyterhub \
ipympl \ ipympl \
&& \ && \
python3.7 -m jupyter labextension install \ python${PYTHON_VERSION} -m jupyter labextension install \
@jupyter-widgets/jupyterlab-manager && \ @jupyter-widgets/jupyterlab-manager && \
python3.7 -m jupyter serverextension enable --sys-prefix --py jupyterlab && \ python${PYTHON_VERSION} -m jupyter serverextension enable --sys-prefix --py jupyterlab && \
python3.7 -m jupyter labextension install \ python${PYTHON_VERSION} -m jupyter labextension install \
jupyter-webrtc \ jupyter-webrtc \
ipyvolume \ ipyvolume \
jupyter-threejs jupyter-threejs
RUN mkdir -p ~/.venv && \ RUN mkdir -p ~/.venv && \
python3.7 -m venv ~/.venv/robofish && \ python${PYTHON_VERSION} -m venv ~/.venv/robofish && \
. ~/.venv/robofish/bin/activate && \ . ~/.venv/robofish/bin/activate && \
pip --no-cache-dir install --upgrade pip==20.1.1 && \ pip --no-cache-dir install --upgrade pip==20.1.1 && \
pip --no-cache-dir install --upgrade setuptools==49.1.0 && \ pip --no-cache-dir install --upgrade setuptools==49.1.0 && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment