Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question:ngshare in Docker? #137

Open
Tropus000 opened this issue Jan 7, 2021 · 2 comments
Open

Question:ngshare in Docker? #137

Tropus000 opened this issue Jan 7, 2021 · 2 comments

Comments

@Tropus000
Copy link

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
Copy link
Member

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
Copy link
Author

Tropus000 commented Jan 10, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants