Browse Source

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

Zhang Li 2 năm trước cách đây
mục cha
commit
ff9f1f1bcf
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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\