Skip to content

Commit

Permalink
Services: Jhub updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Feb 28, 2024
1 parent 90e2315 commit c9b66ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 8 additions & 1 deletion services/jupyter-hub/Dockerfile_singleuser
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ RUN apt-get update && apt-get upgrade -y && \
libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 \
r-base

# python 3.11
RUN apt-get install python3.11-full python3.11-dev

# be careful, this conflicts
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1


RUN apt-get update && apt-get upgrade -y

# Microsoft repos
Expand Down Expand Up @@ -132,7 +139,7 @@ RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir setuptools wheel virtualenv

# jupyterhub stuff
RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git dask-labextension importlib_metadata
RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git importlib_metadata bitstream
RUN pip3 install --no-cache-dir jupyterlab_widgets jupyter_contrib_core jupyter_contrib_nbextensions jupyter-server-proxy fastbook
RUN pip3 install --no-cache-dir docker docker-compose dockerspawner jupyterhub-firstuseauthenticator jupyterhub-systemdspawner jupyterhub-jwtauthenticator jupyterhub-client jupyterhub-kerberosauthenticator
RUN pip3 install --no-cache-dir jupyterhub-nanowireauthenticator jupyterhub-ldapauthenticator jupyterhub-kubespawner jupyterhub-nativeauthenticator
Expand Down
2 changes: 1 addition & 1 deletion services/jupyter-hub/Dockerfile_singleuser_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir setuptools wheel virtualenv

# jupyterhub stuff
RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git dask-labextension importlib_metadata
RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git importlib_metadata bitstream
RUN pip3 install --no-cache-dir jupyterlab_widgets jupyter_contrib_core jupyter_contrib_nbextensions jupyter-server-proxy fastbook
RUN pip3 install --no-cache-dir docker docker-compose dockerspawner jupyterhub-firstuseauthenticator jupyterhub-systemdspawner jupyterhub-jwtauthenticator jupyterhub-client jupyterhub-kerberosauthenticator
RUN pip3 install --no-cache-dir jupyterhub-nanowireauthenticator jupyterhub-ldapauthenticator jupyterhub-kubespawner jupyterhub-nativeauthenticator
Expand Down
3 changes: 2 additions & 1 deletion services/jupyter-hub/config/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def start(self):
if self.user.name not in whitelist:
whitelist.add(self.user.name)
with open(userlist_path , "a") as f:
f.write(self.user.name + "\n")
f.write("\n")
f.write(self.user.name)

if self.user.name in list(team_map.keys()):
for team in team_map[self.user.name]:
Expand Down

0 comments on commit c9b66ed

Please sign in to comment.