Skip to content

Commit

Permalink
removing the need to specify the interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Mar 25, 2024
1 parent 04c8de7 commit bec3433
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .osparc/jupyter-math/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ paths-mapping:
callbacks-mapping:
inactivity:
service: container
command: "/docker/activity.py"
command: ["python", "/docker/activity.py"]
timeout: 1
6 changes: 1 addition & 5 deletions docker/activity.py
Original file line number Diff line number Diff line change
@@ -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)
print(r.text)
3 changes: 0 additions & 3 deletions docker/activity_monitor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/home/jovyan/.venv/bin/python


import json
import logging
import psutil
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bec3433

Please sign in to comment.