Skip to content

Commit

Permalink
[All] Tweak molecule docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo committed Apr 12, 2024
1 parent 5d5d28e commit 094bcc4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
18 changes: 15 additions & 3 deletions .config/molecule/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ platforms:
image: jrei/systemd-debian:buster
platform: linux/amd64
dockerfile: ../Dockerfile.debian.buster.j2
privileged: true
cgroupns_mode: host
capabilities:
- NET_ADMIN
tmpfs:
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
override_command: false
Expand All @@ -19,8 +23,12 @@ platforms:
image: jrei/systemd-debian:bullseye
platform: linux/amd64
dockerfile: ../Dockerfile.debian.bullseye.j2
privileged: true
cgroupns_mode: host
capabilities:
- NET_ADMIN
tmpfs:
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
override_command: false
Expand All @@ -29,8 +37,12 @@ platforms:
image: jrei/systemd-debian:bookworm
platform: linux/amd64
dockerfile: ../Dockerfile.debian.bookworm.j2
privileged: true
cgroupns_mode: host
capabilities:
- NET_ADMIN
tmpfs:
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
override_command: false
Expand Down
4 changes: 1 addition & 3 deletions molecule/Dockerfile.debian.bookworm.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ RUN \
# Goss
&& curl -sSL "https://github.com/aelsabbahy/goss/releases/download/v${GOSS_VERSION}/goss-linux-$(dpkg --print-architecture)" \
--output /usr/local/bin/goss \
&& chmod +x /usr/local/bin/goss \
# Clean
&& rm -rf /var/lib/apt/lists/*
&& chmod +x /usr/local/bin/goss
4 changes: 1 addition & 3 deletions molecule/Dockerfile.debian.bullseye.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ RUN \
# Goss
&& curl -sSL "https://github.com/aelsabbahy/goss/releases/download/v${GOSS_VERSION}/goss-linux-$(dpkg --print-architecture)" \
--output /usr/local/bin/goss \
&& chmod +x /usr/local/bin/goss \
# Clean
&& rm -rf /var/lib/apt/lists/*
&& chmod +x /usr/local/bin/goss
4 changes: 1 addition & 3 deletions molecule/Dockerfile.debian.buster.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ RUN \
# Goss
&& curl -sSL "https://github.com/aelsabbahy/goss/releases/download/v${GOSS_VERSION}/goss-linux-$(dpkg --print-architecture)" \
--output /usr/local/bin/goss \
&& chmod +x /usr/local/bin/goss \
# Clean
&& rm -rf /var/lib/apt/lists/*
&& chmod +x /usr/local/bin/goss

0 comments on commit 094bcc4

Please sign in to comment.