This commit is contained in:
Valentin Verdier 2024-08-24 12:01:44 +02:00
commit 4a90868bab
4 changed files with 81 additions and 0 deletions

24
config.yml Normal file
View File

@ -0,0 +1,24 @@
hub:
config:
Authenticator:
admin_users:
- sarastro
allowed_users:
- valentin
db:
pvc:
storageClassName: local-path
singleuser:
profileList:
- display_name: "Default"
default: True
- display_name: "Custom start script"
kubespawner_override:
cmd: "/home/jovyan/start.sh"
storage:
dynamic:
storageClass: local-path
ingress:
enabled: true
ingressClassName: nginx
hosts: ["mimir.aztrom.fr"]

View File

@ -0,0 +1,32 @@
FROM python:3.11-bookworm
ENV NB_USER=jovyan \
NB_UID=1000 \
HOME=/home/jovyan
RUN adduser \
--disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
--home ${HOME} \
--force-badname \
${NB_USER}
RUN apt-get update \
&& apt-get dist-upgrade --yes \
&& apt-get install --yes \
vim \
htop \
tini \
git \
&& apt-get clean
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
WORKDIR ${HOME}
USER ${NB_USER}
EXPOSE 8888
ENTRYPOINT ["tini", "--"]
CMD ["jupyter", "lab"]

View File

@ -0,0 +1,6 @@
jupyterhub==4.1.6
jupyterlab
nbclassic
nbgitpuller
jupyterlab-lsp
jedi-language-server

19
install.md Normal file
View File

@ -0,0 +1,19 @@
# Installation
`helm repo add jupyterhub https://hub.jupyter.org/helm-chart/`
`helm repo update`
```
helm upgrade --cleanup-on-fail \
--install jupyterhub-mimir jupyterhub/jupyterhub \
--namespace mimir \
--create-namespace \
--version=3.3.8 \
--values config.yml
```
# Mise à jour
```
helm upgrade jupyterhub-mimir jupyterhub/jupyterhub \
--namespace mimir \
--version=3.3.8 \
--values config.yml
```