mirror of
https://gitlab.com/monolithify/base-image-build.git
synced 2024-11-22 12:21:23 +00:00
9 lines
511 B
Bash
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 |