summaryrefslogtreecommitdiffstats
path: root/molecule/default/Dockerfile.raspberrypi.j2
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-08-11 00:32:00 +0200
committerAhmed AbdelHalim <[email protected]>2025-08-11 00:32:00 +0200
commit5378856a4d171815e800671db07365c6e9fbf496 (patch)
tree8f0bded9360fde2cb6779d4e8cd50d41a3741c4c /molecule/default/Dockerfile.raspberrypi.j2
parent36f51ca34f718239d2618ae5d027a7d5d366f864 (diff)
Add network role
Diffstat (limited to 'molecule/default/Dockerfile.raspberrypi.j2')
-rw-r--r--molecule/default/Dockerfile.raspberrypi.j224
1 files changed, 24 insertions, 0 deletions
diff --git a/molecule/default/Dockerfile.raspberrypi.j2 b/molecule/default/Dockerfile.raspberrypi.j2
new file mode 100644
index 00000000..1b1133f4
--- /dev/null
+++ b/molecule/default/Dockerfile.raspberrypi.j2
@@ -0,0 +1,24 @@
+# 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 python3 avahi-daemon \
+ && 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 Raspberry OS default boot (for testing)
+RUN systemctl enable avahi-daemon
+
+VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"]
+
+CMD ["/lib/systemd/systemd"]