Compare commits

...

8 Commits

Author SHA1 Message Date
mingzailao 49412528d0 sada 2023-12-05 07:46:41 -05:00
mingzailao 2c745a8dc6 asd 2023-12-05 07:44:44 -05:00
mingzailao ef8e3c9181 no message 2023-08-11 23:08:44 +08:00
mingzailao 44764cc1c7 no message 2023-06-29 19:48:21 +08:00
mingzailao d099657b4d no message 2023-06-29 16:38:12 +08:00
mingzailao c4e29cac2f no meesage 2023-05-04 18:35:20 +08:00
mingzailao e39e33f458 sd 2023-05-04 14:41:22 +08:00
mingzailao f1405f0f6a no message 2023-03-14 16:52:32 +08:00
2 changed files with 21 additions and 22 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
conda/

View File

@ -1,34 +1,18 @@
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04 FROM nvcr.io/nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
# encoding
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
# fix (tzdata)
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y locales git vim nano zsh wget openssh-server && rm -rf /var/lib/apt/lists/*
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get install -y python3-pip python3-dev
RUN apt-get install -y locales git vim nano
RUN apt-get install -y zsh && apt-get install -y curl
RUN PATH="$PATH:/usr/bin/zsh"
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN echo 'alias python="python3"' >> ~/.bashrc
RUN echo 'alias python="python3"' >> ~/.zshrc
RUN echo 'alias pip="pip3"' >> ~/.bashrc
RUN echo 'alias pip="pip3"' >> ~/.zshrc
RUN apt-get install -y openssh-server
RUN mkdir /var/run/sshd RUN mkdir /var/run/sshd
RUN echo 'root:qwerty' | chpasswd RUN echo 'root:qwerty' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
@ -38,6 +22,20 @@ ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22 EXPOSE 22
RUN usermod -s /bin/zsh root RUN usermod -s /bin/zsh root
ENTRYPOINT ["/bin/zsh"] ENTRYPOINT service ssh start && zsh
COPY ./conda/Miniconda3-latest-Linux-x86_64.sh /opt/Miniconda3-latest-Linux-x86_64.sh
RUN bash /opt/Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
RUN rm -f /opt/Miniconda3-latest-Linux-x86_64.sh
ENV PATH /opt/conda/bin:$PATH
#RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
#RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub