Comments (7)
So basically, you're trying to access the API of individual notebook servers through JupyterHub, which is authenticating users via Gitlab.
I'm going to have to defer to @minrk on this one.
from jupyterhub-deploy-docker.
@jtyberg yes.
The gitlab authentication is akin to the default github one, where I'm also supplying a userlist specifying whether a user has hub admin rights.
For context, as per issue 25, I'm looking to build in some flexibility in terms of what image is used to spin up a server. I would then like to be able to programmatically access (via the Notebook API), a user's given server.
Perhaps this belongs in a separate issue ... but your usage of docker volumes to persist data between different instances of a users' server is novel. I was wondering if you explored a way of pre-seeding these with just the source code from a repo .. which could then be pushed back with git to a VCS ... so a user has benefit of persistence, but also version-control.
from jupyterhub-deploy-docker.
JupyterHub replaces the authentication mechanism, so the token-auth introduced in notebook master won't work (yet) with JupyterHub. I'll work on that after we push out the 0.7 release (likely tomorrow).
from jupyterhub-deploy-docker.
OK. Thanks @minrk for clarifying. Happy to test as and when you get time to implement.
from jupyterhub-deploy-docker.
Thanks, @minrk.
@Analect regarding pre-seeding the Docker volumes with git repos, there's an example of using a custom entry point script here to clone a git repo at container startup. Pushing back to the git repo will require the notebook user is authorized to do so. I've not tried this.
from jupyterhub-deploy-docker.
@jtyberg Thanks for that pointer.
Rather than requiring all users to have knowledge of git ... in order to push some/all changes back to the repo via a terminal, for instance, perhaps some variant of this gist extension from @minrk could present a user with a dialogue box from within jupyterlab for a user to add a commit msg and then push any changed file(s) collectively.
from jupyterhub-deploy-docker.
@Analect Agree with passing the git auth responsibility to the user. Either they enter creds or upload an SSH key.
from jupyterhub-deploy-docker.
Related Issues (20)
- During make build, the /opt/conda/bin missing. HOT 3
- How to get a Docker image created by repo2docker to work? HOT 2
- Extension file HOT 2
- using nbgrader HOT 3
- build failed "No module named 'conda'" HOT 7
- Bad config encountered during initialization: The 'spawner_class' trait of <jupyterhub.app.JupyterHub object at 0x7f1437bfab80> instance must be a type, but 'dockerspawner.DockerSpawner' could not be imported HOT 5
- let's encrypt fix HOT 2
- docker notebook image is 3 years old HOT 2
- Persist home user ssh keys into volume HOT 2
- Q: How to add additional network via docker-compose.yml? HOT 1
- Admin password HOT 2
- Rename `master` -> `main` HOT 2
- '_xsrf' missing while logging in HOT 5
- No internet connection inside dockerhub docker HOT 1
- nbgitpuller not working HOT 3
- How can I enable the sudo option for each user container? HOT 2
- jinja2.exceptions.TemplateNotFound: error.html
- http available?
- jupyterhub-db | FATAL: password authentication failed for user "postgres" HOT 1
- Q: A few questions about the JupyterHub via Docker deployment model ... HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterhub-deploy-docker.