mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-14 05:22:56 +00:00
Make start.sh
the entrypoint (#2087)
This commit is contained in:
@@ -14,8 +14,8 @@ if "JUPYTERHUB_API_TOKEN" in os.environ:
|
||||
os.execvp(command[0], command)
|
||||
|
||||
|
||||
# Wrap everything in start.sh, no matter what
|
||||
command = ["/usr/local/bin/start.sh"]
|
||||
# Entrypoint is start.sh
|
||||
command = []
|
||||
|
||||
# If we want to survive restarts, tell that to start.sh
|
||||
if os.environ.get("RESTARTABLE") == "yes":
|
||||
@@ -40,4 +40,5 @@ if "NOTEBOOK_ARGS" in os.environ:
|
||||
command += sys.argv[1:]
|
||||
|
||||
# Execute the command!
|
||||
print("Executing: " + " ".join(command))
|
||||
os.execvp(command[0], command)
|
||||
|
Reference in New Issue
Block a user