From 9ef99e0a64153c03e24599d4010689b26ccf8cd2 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Mon, 28 Mar 2022 17:53:35 +0200 Subject: [PATCH 1/2] Add init to extra_host_config --- tljh-plasma/tljh_plasma/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tljh-plasma/tljh_plasma/__init__.py b/tljh-plasma/tljh_plasma/__init__.py index 8ac4abd..d9d53bf 100644 --- a/tljh-plasma/tljh_plasma/__init__.py +++ b/tljh-plasma/tljh_plasma/__init__.py @@ -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 children 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( From cec2ea044c57f24924c39f752830aef1063e583e Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 29 Mar 2022 13:26:31 +0200 Subject: [PATCH 2/2] Fix typo in comment --- tljh-plasma/tljh_plasma/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tljh-plasma/tljh_plasma/__init__.py b/tljh-plasma/tljh_plasma/__init__.py index d9d53bf..ff067bb 100644 --- a/tljh-plasma/tljh_plasma/__init__.py +++ b/tljh-plasma/tljh_plasma/__init__.py @@ -124,7 +124,7 @@ 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 children processes are killed + # 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}