Open bpfrd opened 1 year ago
Sorry, I just saw the Dockerfile that you already provided in the demos directory and that works perfectly fine. The only question now is that if I want to deploy it what directories should I mount in the dockerfile so that the students' answers and the teacher's data don't get lost?
best regards behnam
The default exchange uses /usr/local/share/nbgrader/exchange
as the common directory - and ensure to chmod 777 so everyone can read/write to it.
but is mounting only exchange directory sufficient? don't we need to mount the home directory of students and instructors? for example, if they work on their assignment and don't submit it! if they come back later will the data persist?
@bpfrd did you find answers to your questions ?
Hello,
I get the following error while running the script provided in demos folder
./restart_demo.sh demo_one_class_one_grader
When I run the mentioned script for the second time, it works! Here is the Dockerfile where I set up the environment: FROM node:latest
RUN apt-get update && apt-get upgrade -y && \ apt-get install -y sudo vim
RUN mkdir /srv/nbgrader-dir
WORKDIR /srv/nbgrader-dir
RUN git clone https://github.com/jupyter/nbgrader.git .
RUN cp demos/formgrader_workspace.json /root
EXPOSE 8000
CMD ["/bin/bash"]
best regards