mirror of
https://github.com/GeekOops/geekoops-nginx.git
synced 2024-05-19 21:22:21 +00:00
Compare commits
5 commits
fe0f3cdad3
...
1e9acd55fe
Author | SHA1 | Date | |
---|---|---|---|
Felix Niederwanger | 1e9acd55fe | ||
Felix Niederwanger | 94437a3bb2 | ||
Felix Niederwanger | 88558167fa | ||
Felix Niederwanger | 47db538daf | ||
Felix Niederwanger | 3bb759ccbf |
9
molecule/default/Dockerfile.bookworm
Normal file
9
molecule/default/Dockerfile.bookworm
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM docker.io/debian:bullseye
|
||||
|
||||
# Install systemd, and development tools, clear cache and clean system
|
||||
RUN apt-get update && apt-get install -y systemd systemd-sysv python3 curl && rm -rf /var/cache/* && systemctl mask -- dev-hugepages.mount sys-fs-fuse-connections.mount && rm -f /etc/machine-id /var/lib/dbus/machine-id
|
||||
|
||||
STOPSIGNAL SIGRTMIN+3
|
||||
|
||||
# Start container with systemd
|
||||
ENTRYPOINT ["/sbin/init"]
|
|
@ -1,7 +0,0 @@
|
|||
FROM registry.opensuse.org/opensuse/leap:15.3
|
||||
|
||||
# Install systemd and development tools, clear cache
|
||||
RUN zypper in -y systemd systemd-sysvinit firewalld python3 python3-firewall curl && rm -rf /var/cache/* && rm -f /etc/machine-id /var/lib/dbus/machine-id
|
||||
|
||||
# Start container with systemd
|
||||
ENTRYPOINT ["/usr/sbin/init"]
|
|
@ -1,7 +1,7 @@
|
|||
FROM registry.opensuse.org/opensuse/leap:15.4
|
||||
|
||||
# Install systemd and development tools, clear cache
|
||||
RUN zypper in -y systemd systemd-sysvinit firewalld python3 python3-firewall curl && rm -rf /var/cache/* && rm -f /etc/machine-id /var/lib/dbus/machine-id
|
||||
RUN zypper in -y systemd systemd-sysvinit firewalld python3 python3-firewall curl && rm -rf /var/cache/*
|
||||
|
||||
# Start container with systemd
|
||||
ENTRYPOINT ["/usr/sbin/init"]
|
||||
|
|
|
@ -4,23 +4,12 @@ dependency:
|
|||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: leap15_3
|
||||
image: registry.opensuse.org/opensuse/leap:15.3
|
||||
dockerfile: Dockerfile.leap15_3
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
|
||||
privileged: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
- name: leap15_4
|
||||
image: registry.opensuse.org/opensuse/leap:15.4
|
||||
dockerfile: Dockerfile.leap15_4
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
|
||||
privileged: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
cgroupns: host
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
|
@ -29,10 +18,16 @@ platforms:
|
|||
dockerfile: Dockerfile.bullseye
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-"/sbin/init"}
|
||||
privileged: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
cgroupns: host
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
- name: bookworm
|
||||
image: docker.io/debian:bookworm
|
||||
dockerfile: Dockerfile.bookworm
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-"/sbin/init"}
|
||||
privileged: true
|
||||
cgroupns: host
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
|
@ -40,19 +35,14 @@ provisioner:
|
|||
name: ansible
|
||||
inventory:
|
||||
host_vars:
|
||||
leap15_3:
|
||||
vhosts_dir: "/etc/nginx/vhosts.d"
|
||||
deploy_nginx_config: true
|
||||
leap15_4:
|
||||
vhosts_dir: "/etc/nginx/vhosts.d"
|
||||
deploy_nginx_config: true
|
||||
bullseye:
|
||||
vhosts_dir: "/etc/nginx/sites-enabled"
|
||||
deploy_nginx_config: false
|
||||
bookworm:
|
||||
vhosts_dir: "/etc/nginx/sites-enabled"
|
||||
deploy_nginx_config: false
|
||||
verifier:
|
||||
name: testinfra
|
||||
lint:
|
||||
name: flake8
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
|
|
Loading…
Reference in a new issue