feat: add podman package and connection settings
This commit is contained in:
parent
9d0c18f94b
commit
ed3dc4bb8f
@ -10,7 +10,7 @@ ARG DEV_GID=1001
|
|||||||
# Install all necessary packages and clean up cache
|
# Install all necessary packages and clean up cache
|
||||||
RUN pacman -Sy --noconfirm && \
|
RUN pacman -Sy --noconfirm && \
|
||||||
pacman -S --noconfirm --needed \
|
pacman -S --noconfirm --needed \
|
||||||
base-devel neovim git git-lfs fish tmux go-yq rust starship \
|
base-devel neovim git git-lfs fish tmux go-yq rust starship podman \
|
||||||
nodejs python fzf fd ripgrep jdk-openjdk fisher yazi less rust-analyzer \
|
nodejs python fzf fd ripgrep jdk-openjdk fisher yazi less rust-analyzer \
|
||||||
lazygit luarocks python-pynvim npm bash-completion tree-sitter-cli kitty-terminfo \
|
lazygit luarocks python-pynvim npm bash-completion tree-sitter-cli kitty-terminfo \
|
||||||
lua51 openssh fortune-mod && \
|
lua51 openssh fortune-mod && \
|
||||||
@ -31,6 +31,8 @@ ARG DEV_USER=devuser
|
|||||||
ARG DEV_UID=1001
|
ARG DEV_UID=1001
|
||||||
ARG DEV_GID=1001
|
ARG DEV_GID=1001
|
||||||
ARG DEV_HOME=/home/$DEV_USER
|
ARG DEV_HOME=/home/$DEV_USER
|
||||||
|
ARG POD_USER=mypodmanuser
|
||||||
|
ARG POD_UID=1002
|
||||||
|
|
||||||
# Use ADD for extracting archives
|
# Use ADD for extracting archives
|
||||||
ADD home.tar.gz $DEV_HOME
|
ADD home.tar.gz $DEV_HOME
|
||||||
@ -39,6 +41,9 @@ ADD home.tar.gz $DEV_HOME
|
|||||||
RUN mkdir -p $DEV_HOME/.ssh && \
|
RUN mkdir -p $DEV_HOME/.ssh && \
|
||||||
ssh-keyscan -p 2222 10.88.0.1 >> $DEV_HOME/.ssh/known_hosts && \
|
ssh-keyscan -p 2222 10.88.0.1 >> $DEV_HOME/.ssh/known_hosts && \
|
||||||
ssh-keyscan -p 22 github.com >> $DEV_HOME/.ssh/known_hosts && \
|
ssh-keyscan -p 22 github.com >> $DEV_HOME/.ssh/known_hosts && \
|
||||||
|
podman system connection add my-remote --identity $DEV_HOME/.ssh/id_ed25519 \
|
||||||
|
ssh://$POD_USER@10.88.0.1/run/user/${POD_UID}/podman/podman.sock && \
|
||||||
|
podman system connection set-default my-remote && \
|
||||||
for d in $DEV_HOME/.local \
|
for d in $DEV_HOME/.local \
|
||||||
$DEV_HOME/.config/fish/completions \
|
$DEV_HOME/.config/fish/completions \
|
||||||
$DEV_HOME/.config/fish/functions \
|
$DEV_HOME/.config/fish/functions \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user