updated molecule docker-image
This commit is contained in:
parent
414d8647cd
commit
807a2dfe7a
|
|
@ -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"]
|
||||
|
|
@ -16,32 +16,20 @@ platforms:
|
|||
ipv4_address: '192.168.0.1'
|
||||
etc_hosts: {zoneminder.test.ansibleguy.net: '192.168.0.2'}
|
||||
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'
|
||||
|
||||
- name: test-ag-zm-1
|
||||
networks:
|
||||
- name: 'test-ag-zm'
|
||||
ipv4_address: '192.168.0.2'
|
||||
groups: [grp_targets]
|
||||
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue