Skip to content

Commit

Permalink
Add support for Docker cGroups v2 to the containers used for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sleighzy committed Nov 28, 2023
1 parent 1d0101a commit 86d60c3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ platforms:
ipv4_address: '172.40.10.1'
etc_hosts: "{'server-2': '172.40.10.2', 'server-3': '172.40.10.3'}"
pre_build_image: true
privileged: True
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
capabilities:
- SYS_ADMIN
command: /lib/systemd/systemd
groups:
- kafka-nodes
- zookeeper-nodes
- name: server-2
image: centos:7
image: rockylinux:8
networks:
- name: kafka
ipv4_address: '172.40.10.2'
Expand All @@ -42,8 +43,10 @@ platforms:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
command: '/sbin/init'
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: '/usr/lib/systemd/systemd'
pre_build_image: true
capabilities:
- SYS_ADMIN
groups:
Expand All @@ -55,12 +58,13 @@ platforms:
- name: kafka
ipv4_address: '172.40.10.3'
etc_hosts: "{'server-1': '172.40.10.1', 'server-2': '172.40.10.2'}"
privileged: True
privileged: true
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: '/usr/lib/systemd/systemd'
pre_build_image: true
capabilities:
Expand Down

0 comments on commit 86d60c3

Please sign in to comment.