diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:34 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:34 +0200 |
| commit | 6b20b109fd455ffa71351890a18940e7da326229 (patch) | |
| tree | bf429579ddb5f22d06286f5d4670965676fc7af7 /molecule/default/Dockerfile.raspberrypi.j2 | |
| parent | 4e96a9abb248290a72a5bcf088ba16c1d6e2ab71 (diff) | |
Make bootstrap raspberry more detailed with minimal setup
Diffstat (limited to 'molecule/default/Dockerfile.raspberrypi.j2')
| -rw-r--r-- | molecule/default/Dockerfile.raspberrypi.j2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/molecule/default/Dockerfile.raspberrypi.j2 b/molecule/default/Dockerfile.raspberrypi.j2 new file mode 100644 index 0000000..33475b7 --- /dev/null +++ b/molecule/default/Dockerfile.raspberrypi.j2 @@ -0,0 +1,27 @@ +# 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 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 + +# Mimic the Raspberry OS Bookworm default boot (for testing) +RUN mkdir -p /boot/firmware \ + && touch /boot/firmware/kernel8.img \ + && touch /boot/firmware/bootcode.bin \ + && touch /boot/firmware/start.elf + +VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"] + +CMD ["/lib/systemd/systemd"] |
