updated molecule docker-image

This commit is contained in:
AnsibleGuy 2024-05-04 16:19:19 +02:00
parent 22e0f28c18
commit eb0e7d6148
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
2 changed files with 2 additions and 28 deletions

View File

@ -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"]

View File

@ -15,32 +15,20 @@ platforms:
- name: 'test-ag-certs' - name: 'test-ag-certs'
ipv4_address: '192.168.6.1' ipv4_address: '192.168.6.1'
groups: [grp_targets] groups: [grp_targets]
# docker config
docker_host: 'tcp://molecule-docker.local:2375' docker_host: 'tcp://molecule-docker.local:2375'
purge_networks: true image: 'ansible0guy/molecule:debian-latest'
image: 'debian:12-slim'
dockerfile: 'Dockerfile_debian12_systemd.j2'
build_image: yes
tmpfs: ['/tmp', '/run', '/run/lock'] tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true privileged: true
command: '/sbin/init'
- name: test-ag-certs-letsencrypt - name: test-ag-certs-letsencrypt
networks: networks:
- name: 'test-ag-certs' - name: 'test-ag-certs'
ipv4_address: '192.168.6.2' ipv4_address: '192.168.6.2'
groups: [grp_targets] groups: [grp_targets]
# docker config
docker_host: 'tcp://molecule-docker.local:2375' docker_host: 'tcp://molecule-docker.local:2375'
purge_networks: true image: 'ansible0guy/molecule:debian-latest'
image: 'debian:12-slim'
dockerfile: 'Dockerfile_debian12_systemd.j2'
build_image: yes
tmpfs: ['/tmp', '/run', '/run/lock'] tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true privileged: true
command: '/sbin/init'
exposed_ports: exposed_ports:
- '80/tcp' - '80/tcp'
published_ports: # proxied for LetsEncrypt tests published_ports: # proxied for LetsEncrypt tests