Skip to content

Commit

Permalink
Merge pull request #206 from jtpio/docker-crash
Browse files Browse the repository at this point in the history
Add init to extra_host_config
  • Loading branch information
jtpio authored Apr 4, 2022
2 parents 6440685 + cec2ea0 commit 2d23aec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tljh-plasma/tljh_plasma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ def tljh_custom_jupyterhub_config(c, tljh_config_file=CONFIG_FILE):
# set the default cpu and memory limits
c.PlasmaSpawner.args = ["--ResourceUseDisplay.track_cpu_percent=True"]

# prevent PID 1 running in the Docker container to stop when child processes are killed
# see https://github.com/plasmabio/plasma/issues/191 for more info
c.PlasmaSpawner.extra_host_config = {'init': True}

# register Cockpit as a service if active
if check_service_active("cockpit"):
c.JupyterHub.services.append(
Expand Down

0 comments on commit 2d23aec

Please sign in to comment.