1- FROM ubuntu:bionic
1+ FROM ubuntu:jammy
22
3- LABEL maintainer="Jongkuk Lim <limjk@jmarple.ai>"
3+ LABEL maintainer="Jongkuk Lim <limjk@jmarple.ai>, Haneol Kim <hekim@jmarple.ai> "
44ENV DEBIAN_FRONTEND=noninteractive
55ENV TZ=Asia/Seoul
66
@@ -18,24 +18,27 @@ USER user
1818# Install Display dependencies
1919RUN sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev && sudo apt-get -y install jq
2020
21- # Install python3.8
22- RUN sudo apt-get update && sudo apt-get install software-properties-common git -y
23- RUN sudo add-apt-repository ppa:deadsnakes/ppa && sudo apt-get install python3.8 python3.8-dev python3-distutils curl -y
24- RUN sudo ln -s /usr/bin/pip3 /usr/bin/pip && \
25- sudo ln -s /usr/bin/python3.8 /usr/bin/python
26- RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py --force-reinstall && python -m pip install --upgrade pip && rm get-pip.py
21+ ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
22+ ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
2723
28- # Terminal environment
29- RUN git clone https://github.com/JeiKeiLim/my_term.git \
30- && cd my_term \
31- && ./run.sh
24+ RUN sudo apt-get update && sudo apt-get -y install wget curl git
25+ RUN curl -s https://raw.githubusercontent.com/JeiKeiLim/my_term/main/run.sh | /bin/bash -s -- -vim vim
3226
33- # Install vim 8.2 with YCM
34- RUN sudo apt-get install -y software-properties-common \
35- && sudo add-apt-repository ppa:jonathonf/vim \
36- && sudo add-apt-repository ppa:ubuntu-toolchain-r/test \
37- && sudo apt-get update \
38- && sudo apt-get install -y vim g++-8 libstdc++6 cmake wget
27+ # install zsh & set theme powerlevel10k
28+ RUN sudo apt-get update && sudo apt-get install -y zsh && \
29+ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
30+ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
31+ RUN echo "\n# Custom settings" >> /home/user/.zshrc && \
32+ echo "export PATH=/home/user/.local/bin:$PATH" >> /home/user/.zshrc && \
33+ echo "export LC_ALL=C.UTF-8 && export LANG=C.UTF-8" >> /home/user/.zshrc && \
34+ sed '11 c\ZSH_THEME=powerlevel10k/powerlevel10k' ~/.zshrc > tmp.txt && mv tmp.txt ~/.zshrc && \
35+ echo 'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true' >> ~/.zshrc
36+ RUN sudo chsh -s $(which zsh) $(whoami)
37+
38+ # Install python3
39+ RUN sudo apt-get update && sudo apt-get install software-properties-common git -y
40+ RUN sudo apt-get update && sudo apt-get upgrade -y
41+ RUN sudo apt-get install -y python3-pip python3-dev
3942
4043# Install cmake 3.21.0 version.
4144RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0-linux-x86_64.tar.gz \
@@ -48,14 +51,6 @@ RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.2
4851 && sudo ln -s /home/user/root/cmake-3.21.0-linux-x86_64/bin/cpack /usr/bin/cpack \
4952 && rm cmake-3.21.0-linux-x86_64.tar.gz
5053
51- RUN cd /home/user/.vim_runtime/my_plugins \
52- && git clone --recursive https://github.com/ycm-core/YouCompleteMe.git \
53- && cd YouCompleteMe \
54- && CC=gcc-8 CXX=g++-8 python install.py --clangd-completer
55-
56- # Fix error messages with vim plugins
57- RUN cd /home/user/.vim_runtime/sources_non_forked && rm -rf tlib vim-fugitive && git clone https://github.com/tomtom/tlib_vim.git tlib && git clone https://github.com/tpope/vim-fugitive.git
58-
5954COPY ./requirements.txt ./
6055COPY ./requirements-dev.txt ./
6156RUN python -m pip install -r requirements.txt && python -m pip install -r requirements-dev.txt
@@ -65,19 +60,4 @@ RUN rm requirements.txt requirements-dev.txt
6560RUN echo "export PATH=/home/user/.local/bin:\$PATH" >> /home/user/.bashrc
6661RUN echo "export LC_ALL=C.UTF-8 && export LANG=C.UTF-8" >> /home/user/.bashrc
6762
68- # Install zsh with powerlevel10k theme
69- ARG USE_ZSH=true
70-
71- RUN sudo apt-get install -y zsh && \
72- sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
73- git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
74- COPY res/.zshrc res/.p10k.zsh /home/user/
75- RUN sudo chown user:user .zshrc .p10k.zsh
76-
77- RUN if [ "$USE_ZSH" = "true" ]; then \
78- sudo chsh -s $(which zsh) $(whoami) && \
79- echo "\n # Custom settings" >> /home/user/.zshrc && \
80- echo "export PATH=/home/user/.local/bin:\$ PATH" >> /home/user/.zshrc && \
81- echo "export LC_ALL=C.UTF-8 && export LANG=C.UTF-8" >> /home/user/.zshrc; \
82- fi
83-
63+ # Place your environment here
0 commit comments