Browse Source

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

nobody 2 years ago
parent
commit
ba80b3b749
2 changed files with 5 additions and 3 deletions
  1. 1 0
      .dockerignore
  2. 4 3
      Dockerfile.dev

+ 1 - 0
.dockerignore

@@ -1,5 +1,6 @@
 .git
 .dockerignore
+.gitignore
 Dockerfile
 Dockerfile.dev
 docker-compose.yml

+ 4 - 3
Dockerfile.dev

@@ -74,7 +74,7 @@ FROM builder1 as builder2
 WORKDIR /workspace
 
 COPY --from=builder-fe /src/dist  dist
-RUN /opt/conda/bin/pip install dist/*.whl -i https://pypi.douban.com/simple
+RUN /opt/conda/bin/pip install dist/*.whl  -i https://mirror.baidu.com/pypi/simple
 RUN /opt/conda/bin/pip install jupyterlab-language-pack-zh-CN -i https://pypi.douban.com/simple
 RUN mamba install nodejs
 # password 'sx'
@@ -94,9 +94,10 @@ RUN cd /opt/conda/lib/python3.9/site-packages/ \
     && jupyter-kernelspec install sparkmagic/kernels/sparkkernel --user \
     && jupyter-kernelspec install sparkmagic/kernels/pysparkkernel --user\
     && /opt/conda/bin/jupyter serverextension enable --py sparkmagic
-RUN /opt/conda/bin/pip install dist/*.whl -i https://pypi.douban.com/simple
+RUN /opt/conda/bin/pip install dist/*.whl -i https://mirror.baidu.com/pypi/simple
 ADD confs/krb5.conf /etc/
-ADD confs/config.json ~/.sparkmagic/config.json
+ADD confs/config.json .
+RUN mkdir -p $HOME/.sparkmagic && cp config.json $HOME/.sparkmagic
 ADD emr-5xjsy31f_ailab.keytab /
 # RUN kinit -k -t emr-5xjsy31f_ailab.keytab ailab