Commit 92da79e5 authored by Daniele Venzano's avatar Daniele Venzano

Use a stratup script to have env variable expansion

parent 76e77761
Pipeline #10667 passed with stages
in 1 minute and 3 seconds
......@@ -75,7 +75,7 @@ def nb_service(memory_limit, core_limit, image, gpu=False):
],
'environment': [],
'volumes': [],
'command': 'jupyter lab --no-browser --NotebookApp.token=\'\' --allow-root --ip=0.0.0.0',
'command': '/usr/local/bin/start_notebook.sh',
'total_count': 1,
'essential_count': 1,
'startup_order': 0,
......
......@@ -40,3 +40,6 @@ RUN pip install --upgrade pip \
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
ENV NVIDIA_REQUIRE_CUDA "cuda>=9.0"
COPY start_notebook.sh /usr/local/bin/start_notebook.sh
RUN chmod 755 /usr/local/bin/start_notebook.sh
#!/bin/sh
jupyter lab --no-browser --NotebookApp.token="${NOTEBOOK_PASSWORD}" --allow-root --ip=0.0.0.0 --NotebookApp.base_url=${REVERSE_PROXY_PATH_8888}
......@@ -23,3 +23,6 @@ RUN pip install --upgrade pip \
torch==0.4.1 \
torchvision
COPY start_notebook.sh /usr/local/bin/start_notebook.sh
RUN chmod 755 /usr/local/bin/start_notebook.sh
#!/bin/sh
jupyter lab --no-browser --NotebookApp.token="${NOTEBOOK_PASSWORD}" --allow-root --ip=0.0.0.0 --NotebookApp.base_url=${REVERSE_PROXY_PATH_8888}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment