From 9ebb71abcdc5dbec2b2c9e3b6fe97aa6ec15ffb3 Mon Sep 17 00:00:00 2001 From: Lorenzo Tanganelli Date: Tue, 4 Jun 2024 10:03:59 +0000 Subject: [PATCH] move to centos9 and custom build for systemd --- molecule/default/Containerfile_centos.j2 | 4 ++++ molecule/default/molecule.yml | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 molecule/default/Containerfile_centos.j2 diff --git a/molecule/default/Containerfile_centos.j2 b/molecule/default/Containerfile_centos.j2 new file mode 100644 index 0000000..d3c1198 --- /dev/null +++ b/molecule/default/Containerfile_centos.j2 @@ -0,0 +1,4 @@ +FROM quay.io/centos/centos:stream9 + +RUN dnf install -y systemd python3-pip \ + && dnf clean all diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index a3145b6..34e8f7c 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -6,11 +6,12 @@ driver: name: podman platforms: - name: molecule-centos - image: quay.io/centos/centos:stream8 - pre_build_image: true + image: quay.io/centos/centos:stream9 + dockerfile: Containerfile_centos.j2 + pre_build_image: false systemd: true privileged: true - command: "/usr/sbin/init" + command: "/lib/systemd/systemd" tmpfs: "/run": "rw,mode=1777" "/tmp": "rw,mode=1777"