Skip to content

Commit

Permalink
Merge pull request #14 from eodcgmbh/fix_server_config
Browse files Browse the repository at this point in the history
add server config as separate file.
  • Loading branch information
christophreimer authored Nov 14, 2024
2 parents aa473df + 195211e commit 41466a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
8 changes: 8 additions & 0 deletions jupyter_server_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ServerApp": {
"contents_manager_class": "jupyterfs.metamanager.MetaManager",
"jpserver_extensions": {
"jupyterfs.extension": true
}
},
}
22 changes: 2 additions & 20 deletions jupyterlab/eodc-minimal-notebook.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,7 @@ RUN pip install --no-cache-dir --upgrade \

RUN jupyter lab build --minimize=False -y

RUN pip install --no-cache-dir --upgrade jupyter-fs \
cat << 'EOF' > /etc/jupyter/jupyter_server_config.json \
{ \
"ServerApp": { \
"contents_manager_class": "jupyterfs.metamanager.MetaManager", \
"jpserver_extensions": { \
"jupyterfs.extension": true \
} \
}, \
"JupyterFs": { \
"resources": [ \
{ \
"name": "EODC S3", \
"url": "s3:///{{key}}:{{secret}}@{{bucket}}", \
"endpoint": "objectstore.eodc.eu:2222" \
} \
] \
} \
} \
EOF
RUN pip install --no-cache-dir --upgrade jupyter-fs
COPY ./jupyter_server_config.json /etc/jupyter/jupyter_server_config.json

USER ${NB_UID}

0 comments on commit 41466a9

Please sign in to comment.