diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-05-06 00:41:28 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-05-06 00:52:13 +0200 |
| commit | e0818afab6a746585a242d6e770a6542bd251dcb (patch) | |
| tree | 6b3db519faaa9e8d41b3280529b76eca8079b9ed /molecule/proxmox/Dockerfile.j2 | |
| parent | f37aea7b69c822f39ea4326036efae2844e37475 (diff) | |
Add testing for proxmox
Diffstat (limited to 'molecule/proxmox/Dockerfile.j2')
| -rw-r--r-- | molecule/proxmox/Dockerfile.j2 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/molecule/proxmox/Dockerfile.j2 b/molecule/proxmox/Dockerfile.j2 new file mode 100644 index 00000000..39de5170 --- /dev/null +++ b/molecule/proxmox/Dockerfile.j2 @@ -0,0 +1,29 @@ +# Based on the amazing work of geerlingguy <3 +# FROM docker.io/geerlingguy/docker-debian12-ansible +FROM docker.io/library/debian:12.12 + +ARG DEBIAN_FRONTEND=noninteractive + +ENV container docker + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + systemd python3 avahi-daemon dhcpcd iproute2 ifupdown udev curl ca-certificates \ + && curl -fsSL https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg \ + -o /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg \ + && echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" \ + > /etc/apt/sources.list.d/pve-no-subscription.list \ + && rm -Rf /var/lib/apt/lists/* \ + && rm -Rf /usr/share/doc \ + && rm -Rf /usr/share/man \ + && apt-get clean + +RUN rm -f /lib/systemd/system/multi-user.target.wants/getty.target + +# Mimic Debian OS default boot (for testing) +RUN systemctl enable avahi-daemon \ + && touch /etc/locale.gen + +VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"] + +CMD ["/lib/systemd/systemd"] |
