LibreTexts / ngshare

nbgrader sharing service
https://ngshare.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
16 stars 16 forks source link

Question:ngshare in Docker? #137

Open Tropus000 opened 3 years ago

Tropus000 commented 3 years ago

I'm a Student working on an Project for Uni and trying to use nbgrader/ngshare within docker. I tried using it with Dockerspawner and the setup seems fine but the Single-User-Container is not able to connect ngshare server. Is it even possible to use ngshare with Dockerspawner?

rkevin-arch commented 3 years ago

ngshare wasn't designed for Dockerspawner, but I believe it should work. You probably have to set environment variables differently than in Kubernetes. For example, the hub can't talk to ngshare using the URL http://ngshare.default.svc.cluster.local:8080, and you have to specify something else that works with Docker. I suggest reading this to see what environment variables you need to set for ngshare, this to see what environment variables we set in Kubernetes (you may also need to look at the values.yaml to understand some of the template variables), and try coming up with something that works with Docker. If you have any problems, feel free to let me know and I'll try my best to help.

Tropus000 commented 3 years ago

Thank you @rkevin-arch ! I tried working with the environment variables with docker-compose and it seems that ngshare as a service is setup. But still when I try to create a course using ngshare-course-management create_course , no connection could be established with the ngshare server. Is it possible that the Single-User-Server can't connect to/access the url of the ngshare service?