Skip to content

Commit 7e43889

Browse files
author
Zhe Ye
committed
change to zsh
1 parent b41f312 commit 7e43889

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docker/pytorch/Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FROM nvidia/cuda:10.2-devel-ubuntu18.04
99

1010
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
1111
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
1313

1414
# Setup ssh
1515
#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
3333
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
3434

3535
# Setup User
36-
RUN useradd -u 1011 -ms /bin/bash zheye
36+
RUN useradd -u 1011 -ms /bin/zsh zheye
3737
RUN usermod -aG sudo zheye
3838
RUN mkdir /home/zheye/.ssh
3939
RUN cp /root/.ssh/authorized_keys /home/zheye/.ssh/authorized_keys
@@ -45,15 +45,21 @@ ENV LANGUAGE en_US:en
4545
ENV LC_ALL en_US.UTF-8
4646
RUN wget --quiet https://github.com/yezhejack/MyConfig/raw/master/screenrc -O ~/.screenrc
4747

48+
RUN sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
49+
4850
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh -O ~/anaconda.sh && \
4951
/bin/bash ~/anaconda.sh -b -p /home/zheye/anaconda3 && \
5052
rm ~/anaconda.sh && \
53+
echo ". /home/zheye/anaconda3/etc/profile.d/conda.sh" >> ~/.zshrc && \
54+
echo "conda activate base" >> ~/.zshrc && \
5155
echo ". /home/zheye/anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \
5256
echo "conda activate base" >> ~/.bashrc
5357

5458
RUN conda install pytorch torchvision cudatoolkit=10.2 -c pytorch && conda clean -y -a
5559
RUN pip install progressbar2
5660

5761
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+
5864
USER root
5965
WORKDIR /root

0 commit comments

Comments
 (0)