Commit 06e60c85 authored by blackheaven's avatar blackheaven
Browse files

Merge branch 'CI-test' into 'main'

Update 3 files

See merge request jupyterhub-gpu!4
parents e3959ad4 eae9a747
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ stages:

variables:
  CI_REGISTRY: registry.biblio19.net:5005
  IMAGE_TAG: $CI_REGISTRY/school/capstone-design/02/jupyterhub-gpu:init
  IMAGE_TAG: $CI_REGISTRY/school/capstone-design/02/jupyterhub-gpu
before_script:
  - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin

+10 −8
Original line number Diff line number Diff line
@@ -14,18 +14,20 @@ RUN apt-get update -qq \
   && rm -rf /var/lib/apt/lists/*

RUN npm install -g configurable-http-proxy
RUN python3 -m pip install --no-cache-dir jupyterhub jupyterlab sudospawner tensorflow jupyterhub-ldapauthenticator dockerspawner
RUN python3 -m pip install --no-cache-dir jupyterlab-git pandas seaborn beautifulsoup4 bokeh h5py ipympl scipy ipywidgets folium
RUN python3 -m pip install --no-cache-dir jupyterhub jupyterlab jupyterlab-git sudospawner tensorflow jupyterhub-ldapauthenticator
RUN python3 -m pip install --no-cache-dir pandas seaborn beautifulsoup4 bokeh h5py ipympl scipy ipywidgets folium

RUN groupadd jupyterhub
RUN useradd -rm -d /home/rhea -s /bin/bash -G sudo -u 1000 -g jupyterhub rhea
RUN usermod -aG shadow rhea
# RUN groupadd jupyterhub
# RUN useradd -rm -d /home/rhea -s /bin/bash -G sudo -u 1000 -g jupyterhub rhea
# RUN usermod -aG shadow rhea

RUN mkdir /etc/jupyterhub
RUN chown rhea /etc/jupyterhub
# RUN chown rhea /etc/jupyterhub
WORKDIR /etc/jupyterhub

RUN jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub_config.py

# USER rhea
RUN sudo -u rhea jupyterhub --generate-config
# RUN sudo -u rhea jupyterhub --generate-config

CMD ["sudo", "-u", "rhea", "jupyterhub", "--JupyterHub.spawner_class=sudospawner.SudoSpawner"]
CMD [ "jupyterhub", "-f" ,"/etc/jupyterhub/jupyterhub_config.py"]
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ services:
      - ${PWD}/home:/home
      - ${PWD}/share:/share
      - ./passwd/sudoers:/etc/sudoers
    image: 'jupyterhub-test'
    image: 'registry.biblio19.net/school/capstone-design/02/jupyterhub-gpu'
    restart: always
    #devices:
    #  - /dev/nvidia0:/dev/nvidia0