mirror of
https://github.com/ansibleguy/infra_apache.git
synced 2026-10-05 00:05:02 +02:00
updated molecule docker-image
This commit is contained in:
@@ -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"]
|
||||
@@ -15,16 +15,10 @@ platforms:
|
||||
- name: 'test-ag-apache'
|
||||
ipv4_address: '192.168.11.1'
|
||||
groups: [grp_tester]
|
||||
|
||||
# docker config
|
||||
docker_host: 'tcp://molecule-docker.local:2375'
|
||||
purge_networks: true
|
||||
image: 'debian:12-slim'
|
||||
dockerfile: 'Dockerfile_debian12_systemd.j2'
|
||||
build_image: yes
|
||||
image: 'ansible0guy/molecule:debian-latest'
|
||||
tmpfs: ['/tmp', '/run', '/run/lock']
|
||||
privileged: true
|
||||
command: '/sbin/init'
|
||||
|
||||
provisioner:
|
||||
name: ansible
|
||||
|
||||
Reference in New Issue
Block a user