2 커밋 c04c8c1b77 ... 3e40f48163

작성자 SHA1 메시지 날짜
  lujw2 3e40f48163 feat: add ubuntu22.04 dev env 5 달 전
  lujw2 039b427a2b refactor: install more tool 5 달 전
3개의 변경된 파일46개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ros2-galactic.Dockerfile
  2. 21 0
      run_ubuntu22.04.sh
  3. 23 0
      ubuntu-22.04.Dockerfile

+ 2 - 2
ros2-galactic.Dockerfile

@@ -13,8 +13,8 @@ RUN echo "${user}:888888" | chpasswd
     # [Optional] Add sudo support. Omit if you don't need to install software after connecting.
 RUN sed -i 's/http:\/\/archive.ubuntu.com\//http:\/\/mirrors.aliyun.com\//g' /etc/apt/sources.list \
     && apt-get update && apt-get install -y --no-install-recommends sudo \
-    libc-bin \
-    binutils
+    libc-bin binutils \
+    tmux ripgrep fd-find
 
 # ********************************************************
 # * Anything else you want to do like clean up goes here *

+ 21 - 0
run_ubuntu22.04.sh

@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+docker run -d -it \
+    --name ubuntu-22.04-dev \
+    --network=host \
+    --env DISPLAY=$DISPLAY \
+    --privileged \
+    -v /tmp/.X11-unix:/tmp/.X11-unix  \
+    -v /dev:/dev \
+    -v /home/jasper/.config/nvim:/home/jasper/.config/nvim \
+    -v /home/jasper/.config/dotfiles:/home/jasper/.config/dotfiles \
+    -v /home/jasper/.local/share/nvim:/home/jasper/.local/share/nvim \
+    -v /home/jasper/.local/state/nvim:/home/jasper/.local/state/nvim \
+    -v /home/jasper/Software:/home/jasper/Software \
+    -v /home/jasper/.local/bin:/home/jasper/.local/bin \
+    -v /home/jasper/Work:/home/jasper/Work \
+    -v /home/jasper/Android:/home/jasper/Android \
+    -v /home/jasper/Library:/home/jasper/Library \
+    -v /opt/lib:/opt/lib \
+    -v /opt/arm:/opt/arm \
+    ubuntu:22.04-dev

+ 23 - 0
ubuntu-22.04.Dockerfile

@@ -0,0 +1,23 @@
+FROM ubuntu:22.04
+
+# Setup user account
+ARG uid=1000
+ARG gid=1000
+ARG user=jasper
+RUN groupadd -r -f -g ${gid} ${user} && useradd -o -r -l -u ${uid} -g ${gid} -ms /bin/bash ${user}
+RUN usermod -aG sudo ${user}
+RUN echo "${user}:888888" | chpasswd
+
+    # [Optional] Add sudo support. Omit if you don't need to install software after connecting.
+RUN sed -i 's/http:\/\/archive.ubuntu.com\//http:\/\/mirrors.aliyun.com\//g' /etc/apt/sources.list \
+    && apt-get update && apt-get install -y --no-install-recommends sudo \
+    libc-bin binutils \
+    tmux ripgrep fd-find
+
+# ********************************************************
+# * Anything else you want to do like clean up goes here *
+# ********************************************************
+
+# [Optional] Set the default user. Omit if you want to keep the default as root.
+USER $user
+CMD ["/bin/bash"]