feat(buildah): reduce run statements

This commit is contained in:
yeti 2025-04-24 20:48:06 +01:00
parent e9303e2a98
commit 71d675c91c

View File

@ -25,11 +25,12 @@ buildah run "$ctr" -- bash -c "\
buildah copy --chown $DEV_USER:$DEV_USER "$ctr" ./home/. $DEV_HOME
buildah copy "$ctr" ssh $SECURE/ssh
# zsh and tmux config (immutable)
buildah run "$ctr" -- chown -R $DEV_USER:$DEV_USER $DEV_HOME
buildah run --user $DEV_USER "$ctr" -- nvim --headless "+Lazy! sync" +qa
buildah run --user $DEV_USER "$ctr" -- nvim --headless "+Lazy! sync" +qa
buildah run --user $DEV_USER "$ctr" -- nvim --headless "+Lazy! sync" +qa
# configure lazyvim
buildah run --user $DEV_USER "$ctr" -- bash -c "\
nvim --headless \"+Lazy! sync\" +qa && sleep 1 && \
nvim --headless \"+Lazy! sync\" +qa && sleep 1 && \
nvim --headless \"+Lazy! sync\" +qa
"
# lock the files
buildah run "$ctr" -- bash -c "\