Skip to content

Commit

Permalink
Add base nbgrader_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Apr 2, 2024
1 parent bc3dedf commit d88247c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/e2xgrader-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ ARG E2XGRADER_MODE=student
# Inherit from any image, then just install e2xgrader and activate a mode
LABEL maintainer="e2x project H-BRS <[email protected]>"

USER root
# Copy nbgrader base config
COPY configs/nbgrader_config.py /etc/jupyter/nbgrader_config.py
RUN chown root:$NB_GID /etc/jupyter/nbgrader_config.py &&\
chmod g+rwX /etc/jupyter/nbgrader_config.py

USER $NB_USER

# Install requirements shared between all modes
Expand Down
5 changes: 5 additions & 0 deletions images/e2xgrader-notebook/configs/nbgrader_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from e2xgrader.config import configure_base, configure_exchange

c = get_config() # noqa: F821
configure_base(c)
configure_exchange(c)

0 comments on commit d88247c

Please sign in to comment.