jupyterhub/dockerspawner

Allow passing exposed port arguments to docker swarm service creation

Closed this issue · 3 comments

dhalik commented

Hi! First time posting a feature request, please let me know if I'm missing any details or suggestions!

Proposed change

Add the ability to include network configuration attached to the SwarmSpawner similar to the mount configuration. E.g. the ability to expose port 6006 for tensorboard development on a random high port using the command line arguments --publish mode=host,target=6006 . More details available in docker docs

Who would use this feature?

Anyone who needs to run network servers inside the jupyter single user containers

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

minrk commented

We already have SwarmSpawner.extra_endpoint_spec, which lets you pass through endpoints. Is that not sufficient for this?

dhalik commented

Thanks for the quick response @minrk! Yes this is exactly what I was looking for, but I didn't know that "endpoint" meant "port".

Thanks for the help!