diff --git a/.osparc/jupyter-math/runtime.yml b/.osparc/jupyter-math/runtime.yml index 9498aaf..75d2568 100644 --- a/.osparc/jupyter-math/runtime.yml +++ b/.osparc/jupyter-math/runtime.yml @@ -21,5 +21,5 @@ paths-mapping: callbacks-mapping: inactivity: service: container - command: "/docker/activity.py" + command: ["python", "/docker/activity.py"] timeout: 1 \ No newline at end of file diff --git a/docker/activity.py b/docker/activity.py index 51173a6..c8c7989 100644 --- a/docker/activity.py +++ b/docker/activity.py @@ -1,8 +1,4 @@ -#!/home/jovyan/.venv/bin/python - -# prints the result of the activity command - import requests r = requests.get("http://localhost:19597") -print(r.text) \ No newline at end of file +print(r.text) diff --git a/docker/activity_monitor.py b/docker/activity_monitor.py index 702c1a8..7b763ac 100755 --- a/docker/activity_monitor.py +++ b/docker/activity_monitor.py @@ -1,6 +1,3 @@ -#!/home/jovyan/.venv/bin/python - - import json import logging import psutil diff --git a/docker/entrypoint.bash b/docker/entrypoint.bash index ac73777..56b83c7 100755 --- a/docker/entrypoint.bash +++ b/docker/entrypoint.bash @@ -74,5 +74,5 @@ chmod gu-w "/home/${NB_USER}/work" echo echo "$INFO" "Starting notebook ..." -exec gosu "$NB_USER" /docker/activity_monitor.py & +exec gosu "$NB_USER" python /docker/activity_monitor.py & exec gosu "$NB_USER" /docker/boot_notebook.bash