jupyter / nbgrader

A system for assigning and grading notebooks
https://nbgrader.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.27k stars 317 forks source link

issue running `./restart_demo.sh demo_one_class_one_grader` #1785

Open bpfrd opened 1 year ago

bpfrd commented 1 year ago

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

bpfrd commented 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

perllaghu commented 1 year ago

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.

bpfrd commented 1 year ago

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?

brichet commented 5 months ago

@bpfrd did you find answers to your questions ?