ucphhpc / jupyter_service Goto Github PK
View Code? Open in Web Editor NEWA docker swarm of Jupyter Notebooks
A docker swarm of Jupyter Notebooks
i find a nfs mount conf, http://zapad.stanford.edu/SEP-external/jupyterhub_sep/blob/c3d0db306c426550456e7010d778953ce6ad1cef/jupyterhub_config.py#L54-78
when spawn, it's error.
https://github.com/ucphhpc/jupyter_service/blob/master/hub/jupyterhub_config.py :
# Available docker images the user can spawn
c.SwarmSpawner.dockerimages = [
{'image': 'jupyter/base-notebook:latest',
'name': 'Jupyter Notebook'
}
]
It's wrong.
Correct:
# Available docker images the user can spawn
c.SwarmSpawner.images = [
{'image': 'jupyter/base-notebook:latest',
'name': 'Jupyter Notebook'
}
]
i want to deploy https://github.com/rasmunk/jupyter_service/blob/master/docker-compose.yml
i edit https://github.com/rasmunk/jupyter_service/blob/master/hub/jupyterhub_config.py
replace {sshcmd} with ssh [email protected]:~/jupyter/
,and replace {id_rsa} with -----BEGIN RSA PRIVATE.....
and also execute setup_jup_crypt_secret.sh before stack deploy.
but i cannot swpan, the service jupyter-ouyang cannot start, the REPLICAS is 0/1 and it doesn't generate contrainer.
This:
c.SwarmSpawner.resource_spec = {
'cpu_limit' : 1000, # (int) – CPU limit in units of 10^9 CPU shares.
'mem_limit' : int(512 * 1e6), # (int) – Memory limit in Bytes.
'cpu_reservation' : 1000, # (int) – CPU reservation in units of 10^9 CPU shares.
'mem_reservation' : int(512 * 1e6), # (int) – Memory reservation in Bytes
}
don't work.
Error-Message:
Error: HTTP 500: Internal Server Error (Error in Authenticator.pre_spawn_start: APIError 400 Client Error for http+docker://localhost/v1.41/services/create: Bad Request ("rpc error: code = InvalidArgument desc = invalid cpu value 1e-09: Must be at least 0.001"))
i'm wondering what to replace this string.
https://github.com/rasmunk/jupyter_service/blob/795adefb10c62523f393cd1d9e583259b1470879/hub/jupyterhub_config.py#L49
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.