Comments (6)
All one apparently needs to do is to pass the --init
flag to docker run
.
In our case, the container is started by the dockerspawner, and I guess the configuration option will be something like
c.DockerSpawner.extra_run_kwargs = {
'init': '',
}
and needs to be added here:
https://github.com/materialscloud-org/openstack-ansible/blob/738b83e2f8295e944f24f2e62079c41fc88aa04d/roles/mc_jupyter/templates/jupyterhub_config.py#L19-L25
See https://github.com/jupyterhub/dockerspawner/blob/19e26f3d1f5fd196b2a750f9e9c525bcfa0c95fb/dockerspawner/dockerspawner.py#L480-L487
and
jupyterhub/jupyterhub#1599
from aiidalab-docker-stack.
Done in 69ccdb5
Still need to check whether this actually works... (@oschuett how do we know?)
from aiidalab-docker-stack.
I believe the main purpose of tini was to clean up child processes. So, I would just check if any processes remain after a container was forcefully shutdown.
from aiidalab-docker-stack.
Thanks, Ole!
Note to self: The extra_run_kwargs
didn't do the trick yet...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 scienti+ 20 0 19948 3588 3260 S 0.0 0.0 0:00.03 start-sing+
process with PID 1 should beinit
(as verified by running the docker image with --init
locally)
from aiidalab-docker-stack.
it's extra_start_kwargs
, but even this doesn't work because docker-py
does no longer support it...
No solution so far: jupyterhub/dockerspawner#192
from aiidalab-docker-stack.
Turns out the solution is
c.DockerSpawner.extra_host_config.update({ 'init': True })
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 scienti+ 20 0 1144 4 0 S 0.0 0.0 0:00.04 init
from aiidalab-docker-stack.
Related Issues (20)
- Publish new version of the old docker stack with updated aiidalab and aiidalab-home HOT 3
- docker container stuck at loading the start page HOT 1
- The demo images with QE installed HOT 1
- Configure Jupyter server to kill idle python kernels HOT 7
- Can not start the container if the aiida daemon is not properly stopped HOT 5
- Re-introduce openbabel back to docker stack? HOT 8
- Missing joblib dependency HOT 1
- Update traitlets for faster app loading
- QE image install and set aiida-pseudo in advance HOT 1
- Move QE container to aiidalab-qe repo? HOT 3
- Set caching as default for the profile config HOT 2
- Add `rsync` in to the image HOT 4
- Slow build test and push HOT 14
- The DB migration message is hidden from the user
- Set reasonable timeout on self-hosted arm64 runners HOT 1
- accelerate loading by clean init scripts
- Migrate to GHA M1 runners HOT 7
- Install dev dependencies in separate environment on self-hosted runner HOT 9
- Set PIP_USER=true in the image
- Pin the aiida-core to its minor version HOT 1
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 aiidalab-docker-stack.