summaryrefslogtreecommitdiffstats
path: root/molecule/default/Dockerfile.debian.j2
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:33:29 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:33:29 +0200
commitaeaa724705363ca104ab4770d844e396795af3ea (patch)
tree0a3def24d5abc8dddf279477f8549971f50c90ad /molecule/default/Dockerfile.debian.j2
parentbc12fd286b5916518ea5ca756b9ea6eac99c63ef (diff)
Add partition role testing
Diffstat (limited to 'molecule/default/Dockerfile.debian.j2')
-rw-r--r--molecule/default/Dockerfile.debian.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/molecule/default/Dockerfile.debian.j2 b/molecule/default/Dockerfile.debian.j2
new file mode 100644
index 0000000..c28918e
--- /dev/null
+++ b/molecule/default/Dockerfile.debian.j2
@@ -0,0 +1,21 @@
+# Based on the amazing work of geerlingguy <3
+# FROM docker.io/geerlingguy/docker-debian12-ansible
+FROM docker.io/library/debian:bookworm
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+ENV container docker
+
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ systemd systemd-sysv python3 parted dosfstools \
+ && 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
+
+VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"]
+
+CMD ["/lib/systemd/systemd"]