Fixed: Typo, Cleaned: Creation of nbgrader structure

This commit is contained in:
2025-09-15 22:24:55 +02:00
parent 2a0ae8a23f
commit 20961bb885
2 changed files with 5 additions and 9 deletions

View File

@@ -26,14 +26,12 @@ RUN pip install --no-cache-dir \
nbgrader \ nbgrader \
psycopg2-binary psycopg2-binary
RUN mkdir -p /srv/nbgrader/exchange RUN mkdir -p /srv/nbgrader \
RUN chmod -R 777 /srv/nbgrader/exchange && mkdir -p /srv/nbgrader/exchange \
RUN mkdir -p /srv/nbgrader/courses && mkdir -p /srv/nbgrader/courses \
RUN chown -R 1000:100 /srv/nbgrader && chmod -R 755 /srv/nbgrader
#RUN jupyter nbextension install --sys-prefix --py nbgrader --overwrite RUN chown -R 1000:100 /srv/nbgrader
#RUN jupyter nbextension enable --sys-prefix --py nbgrader
#RUN jupyter serverextension enable --sys-prefix --py nbgrader
# Set Workdir # Set Workdir
WORKDIR /srv/jupyterhub WORKDIR /srv/jupyterhub
@@ -41,7 +39,6 @@ WORKDIR /srv/jupyterhub
# Generate Cookie Secret # Generate Cookie Secret
RUN openssl rand -hex 32 > /srv/jupyterhub/cookie_secret RUN openssl rand -hex 32 > /srv/jupyterhub/cookie_secret
RUN chmod 600 /srv/jupyterhub/cookie_secret RUN chmod 600 /srv/jupyterhub/cookie_secret
#ENV JUPYTERHUB_AUTH_TOKEN=$(openssl rand -hex 32)
EXPOSE 8000 EXPOSE 8000

View File

@@ -12,5 +12,4 @@ services:
- ./templates:/srv/jupyterhub/templates:ro - ./templates:/srv/jupyterhub/templates:ro
- ./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py - ./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py
- ./nbgrader_config.py:/srv/nbgrader/nbgrader_config.py:ro - ./nbgrader_config.py:/srv/nbgrader/nbgrader_config.py:ro
- ../nbgrader:/srv/nbgrade
- ../nbgrader:/srv/nbgrader - ../nbgrader:/srv/nbgrader