base-image-build/scripts/setupBuilder/customizeBuilder.sh
2024-08-11 09:09:04 +00:00

9 lines
511 B
Bash

# Runs only on a new qcow2 VM image from Rocky (due to user creation)
# Can be used only as virt-customize --commands-from-file input
run-command useradd rocky
run-command usermod -aG wheel rocky
run-command dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
run-command dnf install -y git docker-ce docker-ce-cli containerd.io docker-compose-plugin buildah podman
run-command dnf clean all
run-command systemctl enable docker
ssh-inject rocky:file:/secureFiles/id_ed25519.pub