@@ -9,7 +9,7 @@ FROM nvidia/cuda:10.2-devel-ubuntu18.04
9
9
10
10
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
11
11
libglib2.0-0 libxext6 libsm6 libxrender1 \
12
- git mercurial subversion sudo openssh-server htop vim locales sed screen && apt-get clean
12
+ git mercurial subversion sudo openssh-server htop vim locales sed screen zsh && apt-get clean
13
13
14
14
# Setup ssh
15
15
# RUN apt-get update && apt-get install -y openssh-server htop vim locales && apt-get clean
@@ -33,7 +33,7 @@ ENV LC_ALL en_US.UTF-8
33
33
RUN echo "export LANG=en_US.UTF-8" >> ~/.bashrc && echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc && echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
34
34
35
35
# Setup User
36
- RUN useradd -u 1011 -ms /bin/bash zheye
36
+ RUN useradd -u 1011 -ms /bin/zsh zheye
37
37
RUN usermod -aG sudo zheye
38
38
RUN mkdir /home/zheye/.ssh
39
39
RUN cp /root/.ssh/authorized_keys /home/zheye/.ssh/authorized_keys
@@ -45,15 +45,21 @@ ENV LANGUAGE en_US:en
45
45
ENV LC_ALL en_US.UTF-8
46
46
RUN wget --quiet https://github.com/yezhejack/MyConfig/raw/master/screenrc -O ~/.screenrc
47
47
48
+ RUN sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
49
+
48
50
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh -O ~/anaconda.sh && \
49
51
/bin/bash ~/anaconda.sh -b -p /home/zheye/anaconda3 && \
50
52
rm ~/anaconda.sh && \
53
+ echo ". /home/zheye/anaconda3/etc/profile.d/conda.sh" >> ~/.zshrc && \
54
+ echo "conda activate base" >> ~/.zshrc && \
51
55
echo ". /home/zheye/anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \
52
56
echo "conda activate base" >> ~/.bashrc
53
57
54
58
RUN conda install pytorch torchvision cudatoolkit=10.2 -c pytorch && conda clean -y -a
55
59
RUN pip install progressbar2
56
60
57
61
RUN echo "export LANG=en_US.UTF-8" >> ~/.bashrc && echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc && echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
62
+ RUN echo "export LANG=en_US.UTF-8" >> ~/.zshrc && echo "export LANGUAGE=en_US.UTF-8" >> ~/.zshrc && echo "export LC_ALL=en_US.UTF-8" >> ~/.zshrc
63
+
58
64
USER root
59
65
WORKDIR /root
0 commit comments