|
@@ -76,7 +76,7 @@ FROM builder1 as builder2
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
RUN /opt/conda/bin/pip install jupyterlab jupyterlab-language-pack-zh-CN -i https://pypi.douban.com/simple
|
|
|
-RUN mamba install nodejs sparkmagic -y
|
|
|
+RUN mamba install nodejs sparkmagic pyhive pandas -y
|
|
|
# pyhive thrift sasl thrift_sasl scikit-learn
|
|
|
# password 'sx'
|
|
|
RUN /opt/conda/bin/jupyter lab --generate-config && \
|
|
@@ -115,10 +115,10 @@ stdout_logfile_maxbytes=50MB\n\
|
|
|
FROM builder3 as image-txtest
|
|
|
COPY --from=builder-fe /src/dist dist
|
|
|
RUN /opt/conda/bin/pip install dist/*.whl -i https://mirror.baidu.com/pypi/simple
|
|
|
-ADD confs/test/krb5.conf /etc/
|
|
|
-ADD confs/test/config.json .
|
|
|
+ADD confs/txtest/krb5.conf /etc/
|
|
|
+ADD confs/txtest/config.json .
|
|
|
RUN mkdir -p $HOME/.sparkmagic && cp config.json $HOME/.sparkmagic
|
|
|
-ADD confs/test/user.keytab /
|
|
|
+ADD confs/txtest/user.keytab /
|
|
|
RUN echo "\
|
|
|
[program:jupyter]\n\
|
|
|
directory=/workspace\n\
|
|
@@ -157,6 +157,7 @@ COPY --from=builder-fe /src/dist dist
|
|
|
RUN /opt/conda/bin/pip install dist/*.whl -i https://mirror.baidu.com/pypi/simple
|
|
|
ADD confs/idctest/config.json .
|
|
|
RUN mkdir -p $HOME/.sparkmagic && cp config.json $HOME/.sparkmagic
|
|
|
+COPY confs/idctest/ydtk /ydtk
|
|
|
RUN echo "\
|
|
|
[program:jupyter]\n\
|
|
|
directory=/workspace\n\
|
|
@@ -169,12 +170,31 @@ stdout_logfile_maxbytes=50MB\n\
|
|
|
" > /etc/supervisor/conf.d/jupyter.conf
|
|
|
|
|
|
|
|
|
+FROM builder2 as jupyter0-idctest
|
|
|
+COPY --from=builder-fe /src/dist dist
|
|
|
+RUN /opt/conda/bin/pip install dist/*.whl -i https://mirror.baidu.com/pypi/simple
|
|
|
+COPY confs/idctest/ydtk /ydtk
|
|
|
+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 --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1' \n\
|
|
|
+autorestart=true\n\
|
|
|
+startretries=0\n\
|
|
|
+redirect_stderr=true\n\
|
|
|
+stdout_logfile=/var/log/jupyter.log\n\
|
|
|
+stdout_logfile_maxbytes=50MB\n\
|
|
|
+environment=PYTHONPATH=/\n\
|
|
|
+" > /etc/supervisor/conf.d/jupyter.conf
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
# 电信云生产
|
|
|
FROM builder3 as image-idcprod
|
|
|
COPY --from=builder-fe /src/dist dist
|
|
|
RUN /opt/conda/bin/pip install dist/*.whl -i https://mirror.baidu.com/pypi/simple
|
|
|
ADD confs/idcprod/config.json .
|
|
|
RUN mkdir -p $HOME/.sparkmagic && cp config.json $HOME/.sparkmagic
|
|
|
+COPY confs/idcprod/ydtk /ydtk
|
|
|
RUN echo "\
|
|
|
[program:jupyter]\n\
|
|
|
directory=/workspace\n\
|
|
@@ -184,9 +204,29 @@ startretries=0\n\
|
|
|
redirect_stderr=true\n\
|
|
|
stdout_logfile=/var/log/jupyter.log\n\
|
|
|
stdout_logfile_maxbytes=50MB\n\
|
|
|
+environment=PYTHONPATH=/\n\
|
|
|
+" > /etc/supervisor/conf.d/jupyter.conf
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+FROM builder2 as jupyter0-idcprod
|
|
|
+COPY --from=builder-fe /src/dist dist
|
|
|
+RUN /opt/conda/bin/pip install dist/*.whl -i https://mirror.baidu.com/pypi/simple
|
|
|
+COPY confs/idcprod/ydtk /ydtk
|
|
|
+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 --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1' \n\
|
|
|
+autorestart=true\n\
|
|
|
+startretries=0\n\
|
|
|
+redirect_stderr=true\n\
|
|
|
+stdout_logfile=/var/log/jupyter.log\n\
|
|
|
+stdout_logfile_maxbytes=50MB\n\
|
|
|
+environment=PYTHONPATH=/\n\
|
|
|
" > /etc/supervisor/conf.d/jupyter.conf
|
|
|
|
|
|
# 普通版
|
|
|
+
|
|
|
FROM builder2 as jupyter0
|
|
|
|
|
|
COPY --from=builder-fe /src/dist dist
|