diff --git a/Containerfile b/Containerfile index d9cbbe6..2c5e4ca 100644 --- a/Containerfile +++ b/Containerfile @@ -10,7 +10,7 @@ ARG DEV_GID=1001 # Install all necessary packages and clean up cache RUN pacman -Sy --noconfirm && \ 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 \ lazygit luarocks python-pynvim npm bash-completion tree-sitter-cli kitty-terminfo \ lua51 openssh fortune-mod && \ @@ -31,6 +31,8 @@ ARG DEV_USER=devuser ARG DEV_UID=1001 ARG DEV_GID=1001 ARG DEV_HOME=/home/$DEV_USER +ARG POD_USER=mypodmanuser +ARG POD_UID=1002 # Use ADD for extracting archives ADD home.tar.gz $DEV_HOME @@ -39,6 +41,9 @@ ADD home.tar.gz $DEV_HOME RUN mkdir -p $DEV_HOME/.ssh && \ ssh-keyscan -p 2222 10.88.0.1 >> $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 \ $DEV_HOME/.config/fish/completions \ $DEV_HOME/.config/fish/functions \