Browse Source

Merge branch 'yili' of http://gogsb.soaringnova.com/ylproj/jupyterlab into yili

Leo 1 year ago
parent
commit
837b1afd44
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Dockerfile.dev

+ 4 - 4
Dockerfile.dev

@@ -105,7 +105,7 @@ RUN mkdir -p $HOME/.sparkmagic && cp config.json $HOME/.sparkmagic
 RUN echo "\
 [program:jupyter]\n\
 directory=/workspace\n\
-command=/bin/bash -c '/opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser' \n\
+command=/bin/bash -c '/opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1' \n\
 autorestart=true\n\
 startretries=0\n\
 redirect_stderr=true\n\
@@ -124,7 +124,7 @@ ADD confs/test/user.keytab /
 RUN echo "\
 [program:jupyter]\n\
 directory=/workspace\n\
-command=/bin/bash -c 'kinit -k -t /user.keytab ailab && /opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser' \n\
+command=/bin/bash -c 'kinit -k -t /user.keytab ailab && /opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1' \n\
 autorestart=true\n\
 startretries=0\n\
 redirect_stderr=true\n\
@@ -145,7 +145,7 @@ ADD confs/txprod/user.keytab /
 RUN echo "\
 [program:jupyter]\n\
 directory=/workspace\n\
-command=/bin/bash -c 'kinit -k -t /user.keytab ylaiuser && /opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser' \n\
+command=/bin/bash -c 'kinit -k -t /user.keytab ylaiuser && /opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1' \n\
 autorestart=true\n\
 startretries=0\n\
 redirect_stderr=true\n\
@@ -162,7 +162,7 @@ RUN mkdir -p $HOME/.sparkmagic && cp config.json $HOME/.sparkmagic
 RUN echo "\
 [program:jupyter]\n\
 directory=/workspace\n\
-command=/bin/bash -c '/opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser' \n\
+command=/bin/bash -c '/opt/conda/bin/jupyter lab --ip 0.0.0.0 --port 8888 --allow-root --no-browser --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1' \n\
 autorestart=true\n\
 startretries=0\n\
 redirect_stderr=true\n\