diff --git a/molecule/default/Dockerfile_debian12_systemd.j2 b/molecule/default/Dockerfile_debian12_systemd.j2 deleted file mode 100644 index 703498a..0000000 --- a/molecule/default/Dockerfile_debian12_systemd.j2 +++ /dev/null @@ -1,14 +0,0 @@ -# docker build -t mantest - < ./Dockerfile.j2 -# docker run -it --privileged --name mantest mantest:latest /sbin/init --tmpfs /tmp --tmpfs /run --tmpfs /run/lock - -FROM debian:12-slim - -ENV container docker -ENV LC_ALL C -ENV DEBIAN_FRONTEND noninteractive - -RUN apt-get update \ - && apt-get install -y systemd systemd-sysv python3 sudo \ - && apt-get clean - -CMD ["/sbin/init"] diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index e227620..5d89f89 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -7,14 +7,9 @@ _references: all: &docker_all docker_host: 'tcp://molecule-docker.local:2375' # docker_host: 'unix://var/run/docker.sock' # localhost - purge_networks: true - image: 'debian:12-slim' - # for docker systemd config see: https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva - dockerfile: 'Dockerfile_debian12_systemd.j2' - build_image: yes + image: 'ansible0guy/molecule:debian-latest' tmpfs: ['/tmp', '/run', '/run/lock'] privileged: true - command: '/sbin/init' dependency: name: galaxy