update timeout
This commit is contained in:
@@ -88,7 +88,7 @@ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
|||||||
echo 'Asia/Shanghai' > /etc/timezone
|
echo 'Asia/Shanghai' > /etc/timezone
|
||||||
dpkg-reconfigure -f noninteractive tzdata
|
dpkg-reconfigure -f noninteractive tzdata
|
||||||
# 安装所需的软件包
|
# 安装所需的软件包
|
||||||
apt-get install -y python3 python3-pip gcc g++ build-essential nodejs npm gdebi-core curl wget openssh-server vim lrzsz net-tools sudo git texlive-full
|
apt-get install -y python3 python3-pip gcc g++ build-essential nodejs npm gdebi-core curl wget openssh-server vim lrzsz net-tools sudo git
|
||||||
# 创建新用户
|
# 创建新用户
|
||||||
useradd -m -s /bin/bash ${CREATE_USER}
|
useradd -m -s /bin/bash ${CREATE_USER}
|
||||||
echo "${CREATE_USER}:${CREATE_USER_PASSWD}" | chpasswd
|
echo "${CREATE_USER}:${CREATE_USER_PASSWD}" | chpasswd
|
||||||
@@ -97,7 +97,7 @@ echo "${CREATE_USER} ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|||||||
echo "1" | bash <(curl -s https://raw.githubusercontent.com/hotwa/MicroMamba_Installer/main/install.sh)
|
echo "1" | bash <(curl -s https://raw.githubusercontent.com/hotwa/MicroMamba_Installer/main/install.sh)
|
||||||
# 安装 Jupyter 和相关软件
|
# 安装 Jupyter 和相关软件
|
||||||
npm install -g configurable-http-proxy
|
npm install -g configurable-http-proxy
|
||||||
python3 -m pip install jupyterhub jupyterlab notebook radian pycurl jupyter-rsession-proxy ipykernel jupyterlab-language-pack-zh-CN jupyterlab-git jupyterlab-system-monitor jupyter_nbextensions_configurator jupyter_contrib_nbextensions jupyterlab_widgets jupyterlab-drawio jupyterlab-spreadsheet-editor jupyterlab-cell-flash jedi-language-server jupyterlab_code_formatter jupyterlab-spellchecker jupyterlab_vim nbresuse ipydrawio jedi ipympl black isort theme-darcula ipywidgets tensorboard jupyterlab_latex jupyter_bokeh autopep8 xeus-python jupyterlab-lsp python-lsp-server nglview dockerspawner jupyterhub-nativeauthenticator lckr_jupyterlab_variableinspector
|
python3 -m pip install --default-timeout=1000 jupyterhub jupyterlab notebook radian pycurl jupyter-rsession-proxy ipykernel jupyterlab-language-pack-zh-CN jupyterlab-git jupyterlab-system-monitor jupyter_nbextensions_configurator jupyter_contrib_nbextensions jupyterlab_widgets jupyterlab-drawio jupyterlab-spreadsheet-editor jupyterlab-cell-flash jedi-language-server jupyterlab_code_formatter jupyterlab-spellchecker jupyterlab_vim nbresuse ipydrawio jedi ipympl black isort theme-darcula ipywidgets tensorboard jupyterlab_latex jupyter_bokeh autopep8 xeus-python jupyterlab-lsp python-lsp-server nglview dockerspawner jupyterhub-nativeauthenticator lckr_jupyterlab_variableinspector
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
@@ -127,11 +127,23 @@ EOT
|
|||||||
# Switch back to jovyan to avoid accidental container runs as root
|
# Switch back to jovyan to avoid accidental container runs as root
|
||||||
USER ${NB_UID}
|
USER ${NB_UID}
|
||||||
ENV MAMBA_ROOT_PREFIX=/home/${CREATE_USER}/micromamba
|
ENV MAMBA_ROOT_PREFIX=/home/${CREATE_USER}/micromamba
|
||||||
|
ENV PATH="/usr/local/bin/bin:$PATH"
|
||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y texlive-full
|
||||||
micromamba create -n plot -c conda-forge scienceplots autopep8 python=3 ipykernel pandas numpy matplotlib scipy seaborn orange3 -y
|
micromamba create -n plot -c conda-forge scienceplots autopep8 python=3 ipykernel pandas numpy matplotlib scipy seaborn orange3 -y
|
||||||
micromamba run -n plot python -m pip install bamboolib
|
micromamba run -n plot python -m pip install bamboolib
|
||||||
micromamba run -n plot python -m ipykernel install --user --name="sciplot" --display-name="SCIPlot Environment"
|
micromamba run -n plot python -m ipykernel install --user --name="sciplot" --display-name="SCIPlot Environment"
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
# Install Rust Install evcxr_jupyter for Rust in Jupyter
|
||||||
|
RUN <<EOT
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
source $HOME/.cargo/env && \
|
||||||
|
cargo install evcxr_jupyter && \
|
||||||
|
evcxr_jupyter --install
|
||||||
|
EOT
|
||||||
|
|
||||||
WORKDIR "${HOME}"
|
WORKDIR "${HOME}"
|
||||||
Reference in New Issue
Block a user