diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-04 00:25:57 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-04 00:25:57 +0200 |
| commit | eaeb038e785c764725ccb3a58019b62bdb358e4e (patch) | |
| tree | 325a3a3629e11e95a4379e0dab9d6a91b08290ca /molecule/raspberrypi/Dockerfile.j2 | |
| parent | 4b0aca8daf53610edff032d0f96f1af163e7ff8d (diff) | |
Refactor molecule testing to run a scenario per distro
Diffstat (limited to 'molecule/raspberrypi/Dockerfile.j2')
| -rw-r--r-- | molecule/raspberrypi/Dockerfile.j2 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/molecule/raspberrypi/Dockerfile.j2 b/molecule/raspberrypi/Dockerfile.j2 new file mode 100644 index 00000000..aa620c58 --- /dev/null +++ b/molecule/raspberrypi/Dockerfile.j2 @@ -0,0 +1,25 @@ +# 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 iproute2 ifupdown \ + && 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 \ + && touch /etc/locale.gen + +VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"] + +CMD ["/lib/systemd/systemd"] |
