Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Jan 31, 2024
1 parent 637d860 commit 54719cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 8 additions & 1 deletion jupyter-covid19/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/cdis/jupyter-notebook:restricted-download-jupyter-covid19-restrict-download
FROM quay.io/cdis/jupyter-notebook:restricted-download-master

USER $NB_USER
WORKDIR /home/$NB_USER
Expand Down Expand Up @@ -97,3 +97,10 @@ RUN touch /home/$NB_USER/covid19-notebook/peregrine.py

# premade notebooks dependencies
RUN pip install -U -r /home/$NB_USER/covid19-notebook/requirements.txt

# The image can't function (see error below) with `jsonschema` version 3.2.0. Some dependencies are
# preventing `jsonschema` from being upgraded to a more recent version. Updating it here as a quick fix.
# File "/usr/local/lib/python3.9/dist-packages/jupyter_events/validators.py", line 44, in <module>
# JUPYTER_EVENTS_SCHEMA_VALIDATOR = Draft7Validator(
# TypeError: __init__() got an unexpected keyword argument 'registry'
RUN pip install jsonschema==4.20.0 --upgrade
4 changes: 0 additions & 4 deletions jupyter-restricted-download/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ COPY resources/custom.js /home/$NB_USER/.jupyter/custom/
COPY resources/jupyter_notebook_config.py /home/$NB_USER/.jupyter/tmp.py
RUN cat /home/$NB_USER/.jupyter/tmp.py >> /home/$NB_USER/.jupyter/jupyter_notebook_config.py && rm /home/$NB_USER/.jupyter/tmp.py

# Putting this all the way down here, to make sure its the last thing done
# The image can't function with jsonschema version 3.2.0, which some dependency installs
RUN pip install jsonschema==4.20.0 --upgrade

USER $NB_USER

# Set the default command to start JupyterLab
Expand Down

0 comments on commit 54719cd

Please sign in to comment.