Parcourir la source

add NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1

Zhang Li il y a 1 an
Parent
commit
ff9f1f1bcf
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      Dockerfile.dev

+ 3 - 3
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\
@@ -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\