-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |