Commit 6d0a94a4 authored by Yunsheng Li's avatar Yunsheng Li

Update Dockerfile

parent bdda6090
Pipeline #9729 failed with stage
in 10 minutes and 53 seconds
......@@ -4,8 +4,8 @@ LABEL maintainer="yunsheng li<yul554@ucsd.edu>"
ENV CONDA_DIR=/opt/conda \
SHELL=/bin/bash \
NB_USER=yunsheng \
NB_UID=1000 \
NB_USER=svcl \
NB_UID=1001 \
NB_GID=100 \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
......@@ -55,9 +55,6 @@ RUN set -x \
curl \
wget \
unzip \
python-pip \
zip \
python-setuptools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& wget https://blink.ucsd.edu/_files/technology-tab/network/vpn_install-4.6.01098.sh \
......@@ -95,123 +92,58 @@ RUN set -x \
&& echo "e1045ee415162f944b6aebfe560b8fee *Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - \
&& /bin/bash Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR \
&& rm Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh \
#&& /usr/bin/pip install torch \
#&& /usr/bin/pip install torchvision \
#&& /usr/bin/pip install scipy \
&& $CONDA_DIR/bin/conda config --system --prepend channels conda-forge \
#&& $CONDA_DIR/bin/conda config --remove channels conda-forge \
&& $CONDA_DIR/bin/conda config --add channels conda-forge \
&& $CONDA_DIR/bin/conda config --system --set auto_update_conda false \
&& $CONDA_DIR/bin/conda config --system --set show_channel_urls true \
&& $CONDA_DIR/bin/conda update --all --quiet --yes \
&& conda clean -tipsy \
&& fix-permissions $CONDA_DIR
#RUN set -x \
# && conda install --quiet --yes \
# 'notebook=5.7.*' \
# 'jupyterhub=0.9.*' \
# 'jupyterlab=0.35.*' \
# && conda clean -tipsy \
# && fix-permissions $CONDA_DIR
RUN set -x \
&& conda install --quiet --yes \
'notebook=5.7.*' \
'jupyterhub=0.9.*' \
'jupyterlab=0.35.*' \
&& conda clean -tipsy \
&& fix-permissions $CONDA_DIR
#RUN set -x \
# && $CONDA_DIR/bin/conda install --quiet --yes -c pytorch \
# 'nomkl' \
# 'ipywidgets' \
# && conda clean -tipsy
#RUN set -x \
# && conda install --quiet --yes -c pytorch \
# 'pandas=0.23*' \
# 'numexpr=2.6*' \
# 'matplotlib=2.2*' \
# && conda clean -tipsy
#RUN set -x \
# && conda install --quiet --yes -c pytorch \
# 'scipy=1.1*' \
# 'seaborn=0.9*' \
# 'scikit-learn=0.19*' \
# 'scikit-image=0.14*' \
# 'sympy=1.2*' \
# && conda clean -tipsy
#RUN set -x \
# && conda install --quiet --yes -c pytorch \
# 'cython=0.28*' \
# 'patsy=0.5*' \
# 'statsmodels=0.9*' \
# 'cloudpickle=0.5*' \
# 'dill=0.2*' \
# 'numba=0.39*' \
# 'bokeh=0.13*' \
# && conda clean -tipsy
#RUN set -x \
# && conda install --quiet --yes -c pytorch \
# 'sqlalchemy=1.2*' \
# 'hdf5=1.10.2' \
# 'h5py=2.8*' \
# 'vincent=0.4.*' \
# 'beautifulsoup4=4.6.*' \
# 'protobuf=3.*' \
# && conda clean -tipsy
#RUN set -x \
# && conda install --quiet --yes -c pytorch \
# 'jupyter_contrib_nbextensions' \
# 'xlrd' \
# 'astropy' \
# 'numpy' \
# 'r-irkernel' \
# 'dominate' \
# 'visdom' \
# 'easydict' \
# && conda clean -tipsy
RUN set -x \
&& pip install --upgrade pip
RUN set -x \
#&& conda install --quiet --yes -c pytorch \
# 'pytorch' \
# 'torchvision' \
# 'cudatoolkit=10.1' \
#&& conda remove --quiet --yes --force qt pyqt \
#&& conda clean -tipsy \
&& conda install --quiet --yes -c pytorch \
'nomkl' \
'ipywidgets=7.4*' \
'pandas=0.23*' \
'numexpr=2.6*' \
'matplotlib=2.2*' \
'scipy=1.1*' \
'seaborn=0.9*' \
'scikit-learn=0.19*' \
'scikit-image=0.14*' \
'sympy=1.2*' \
'cython=0.28*' \
'patsy=0.5*' \
'statsmodels=0.9*' \
'cloudpickle=0.5*' \
'dill=0.2*' \
'numba=0.39*' \
'bokeh=0.13*' \
'sqlalchemy' \
'hdf5=1.10.2' \
'h5py=2.8*' \
'vincent=0.4.*' \
'beautifulsoup4=4.6.*' \
'protobuf=3.*' \
'jupyter_contrib_nbextensions' \
'xlrd' \
'astropy' \
'numpy' \
'r-irkernel' \
'pytorch=1.0*' \
'torchvision' \
'cudatoolkit=10.0' \
&& conda remove --quiet --yes --force qt pyqt \
&& conda clean -tipsy \
&& pip install \
jupyter_contrib_nbextensions \
xlrd \
astropy \
numpy \
r-irkernel \
dominate \
visdom \
easydict \
sqlalchemy \
hdf5 \
h5py \
vincent \
beautifulsoup4 \
protobuf \
cython \
patsy \
statsmodels \
cloudpickle \
dill \
numba \
bokeh \
scipy \
seaborn \
scikit-learn \
scikit-image \
sympy \
pandas \
numexpr \
matplotlib \
nomkl \
ipywidgets \
argparse \
imutils \
keras==2.2.4 \
......@@ -219,27 +151,20 @@ RUN set -x \
opencv-python \
requests \
tensorflow-gpu==1.13.0rc1 \
torch \
torchvision \
visualdl==0.0.2 \
visualdl \
git+https://github.com/veeresht/CommPy.git \
#tensorflow-probability-gpu \
tensorflow-probability \
bash_kernel \
matlab_kernel \
shapely \
fire \
pybind11 \
tensorboardX \
tensorboardX==1.6 \
protobuf \
scikit-image \
numba \
pillow==6.1 \
ninja \
yacs \
#opencv-python \
tqdm \
#cython \
#matplotlib \
pillow \
&& python -m bash_kernel.install \
&& jupyter nbextension enable --py widgetsnbextension --sys-prefix \
......@@ -255,6 +180,7 @@ RUN python -m pip install cmake
EXPOSE 8888
EXPOSE 22
EXPOSE 2222
EXPOSE 6006
WORKDIR $HOME
ENTRYPOINT ["tini", "--"]
......@@ -277,36 +203,8 @@ ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \
fix-permissions /home/$NB_USER
RUN echo "gautam ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
usermod -aG sudo yunsheng && \
usermod -aG root yunsheng
RUN echo "svcl ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
usermod -aG sudo svcl && \
usermod -aG root svcl
USER root
RUN apt-get update && \
apt-get -y install openssh-server && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/run/sshd && \
rm -f /etc/ssh/ssh_host_*key*
COPY sshd_config /etc/ssh/sshd_config
COPY create-sftp-user /usr/local/bin/
COPY entrypoint /
RUN ["chmod", "+x", "/etc/ssh/sshd_config"]
RUN ["chmod", "+x", "/usr/local/bin/create-sftp-user"]
RUN ["chmod", "+x", "/entrypoint"]
#RUN ["chown", "-R", "svcl", "/home/svcl/"]
EXPOSE 22
RUN set -x \
&& fix-permissions $HOME \
&& fix-permissions $CONDA_DIR \
&& fix-permissions /etc
#RUN echo "svcl ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
# usermod -aG sudo svcl && \
# usermod -aG root svcl
ENTRYPOINT ["/entrypoint"]
\ No newline at end of file
USER root
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment