From 8102fa6bbea491ee54b4e9cf518fb54d899f63ec Mon Sep 17 00:00:00 2001 From: Pauline <4224001+paulineribeyre@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:54:11 +0100 Subject: [PATCH] rename to 'restricted' + remove jupyter-covid19 changes for now --- ...ovid19_restricted_download.yml => build_prc_images.yml} | 3 ++- jupyter-covid19/Dockerfile | 7 +++---- .../.env | 0 .../Dockerfile | 0 .../README.md | 2 +- .../resources/custom.js | 0 .../resources/jupyter_notebook_config.py | 0 .../start-notebook.sh | 0 .../start-singleuser.sh | 0 .../start.sh | 0 10 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{build_jupyter_covid19_restricted_download.yml => build_prc_images.yml} (87%) rename {jupyter-restrict-download => jupyter-restricted-download}/.env (100%) rename {jupyter-restrict-download => jupyter-restricted-download}/Dockerfile (100%) rename {jupyter-restrict-download => jupyter-restricted-download}/README.md (51%) rename {jupyter-restrict-download => jupyter-restricted-download}/resources/custom.js (100%) rename {jupyter-restrict-download => jupyter-restricted-download}/resources/jupyter_notebook_config.py (100%) rename {jupyter-restrict-download => jupyter-restricted-download}/start-notebook.sh (100%) rename {jupyter-restrict-download => jupyter-restricted-download}/start-singleuser.sh (100%) rename {jupyter-restrict-download => jupyter-restricted-download}/start.sh (100%) diff --git a/.github/workflows/build_jupyter_covid19_restricted_download.yml b/.github/workflows/build_prc_images.yml similarity index 87% rename from .github/workflows/build_jupyter_covid19_restricted_download.yml rename to .github/workflows/build_prc_images.yml index ec6eb2e1..967d9560 100644 --- a/.github/workflows/build_jupyter_covid19_restricted_download.yml +++ b/.github/workflows/build_prc_images.yml @@ -1,9 +1,10 @@ name: Build and push PRC images +# TODO: `jupyter-covid19` should be moved to this file, instead of the quay build trigger on: push: paths: - - jupyter-restricted-download/Dockerfile + - jupyter-restricted-download - .github/workflows/build_jupyter_restricted_download.yml jobs: diff --git a/jupyter-covid19/Dockerfile b/jupyter-covid19/Dockerfile index f6acee03..d4d514b9 100644 --- a/jupyter-covid19/Dockerfile +++ b/jupyter-covid19/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/cdis/jupyter-restrict-download:1.1.0 +FROM quay.io/cdis/jupyter-notebook:1.1.0 USER $NB_USER WORKDIR /home/$NB_USER @@ -96,6 +96,5 @@ ADD --chown=jovyan:users https://raw.githubusercontent.com/uc-cdis/covid19-tools RUN touch /home/$NB_USER/covid19-notebook/peregrine.py # premade notebooks dependencies -# RUN pip install --upgrade 'pip<20.3' # pip 20.3 causes dependency resolution issues -COPY requirements.txt /home/$NB_USER/covid19-notebook/requirements.txt -RUN pip install -r /home/$NB_USER/covid19-notebook/requirements.txt --upgrade +RUN pip install --upgrade 'pip<20.3' # pip 20.3 causes dependency resolution issues +RUN pip install -r /home/$NB_USER/covid19-notebook/requirements.txt diff --git a/jupyter-restrict-download/.env b/jupyter-restricted-download/.env similarity index 100% rename from jupyter-restrict-download/.env rename to jupyter-restricted-download/.env diff --git a/jupyter-restrict-download/Dockerfile b/jupyter-restricted-download/Dockerfile similarity index 100% rename from jupyter-restrict-download/Dockerfile rename to jupyter-restricted-download/Dockerfile diff --git a/jupyter-restrict-download/README.md b/jupyter-restricted-download/README.md similarity index 51% rename from jupyter-restrict-download/README.md rename to jupyter-restricted-download/README.md index ca3a367a..f0d810ea 100644 --- a/jupyter-restrict-download/README.md +++ b/jupyter-restricted-download/README.md @@ -1,3 +1,3 @@ # jupyter-restricted-download -A "restricted" build of `jupyter-slim`. Basically the same as `../jupyter-slim/`, but it restricts user to download anything from the jupyter lab +A "restricted" build of `jupyter-slim`. Basically the same as `../jupyter-slim/`, but it prevents users from downloading anything from the jupyter lab diff --git a/jupyter-restrict-download/resources/custom.js b/jupyter-restricted-download/resources/custom.js similarity index 100% rename from jupyter-restrict-download/resources/custom.js rename to jupyter-restricted-download/resources/custom.js diff --git a/jupyter-restrict-download/resources/jupyter_notebook_config.py b/jupyter-restricted-download/resources/jupyter_notebook_config.py similarity index 100% rename from jupyter-restrict-download/resources/jupyter_notebook_config.py rename to jupyter-restricted-download/resources/jupyter_notebook_config.py diff --git a/jupyter-restrict-download/start-notebook.sh b/jupyter-restricted-download/start-notebook.sh similarity index 100% rename from jupyter-restrict-download/start-notebook.sh rename to jupyter-restricted-download/start-notebook.sh diff --git a/jupyter-restrict-download/start-singleuser.sh b/jupyter-restricted-download/start-singleuser.sh similarity index 100% rename from jupyter-restrict-download/start-singleuser.sh rename to jupyter-restricted-download/start-singleuser.sh diff --git a/jupyter-restrict-download/start.sh b/jupyter-restricted-download/start.sh similarity index 100% rename from jupyter-restrict-download/start.sh rename to jupyter-restricted-download/start.sh