-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
128 lines (124 loc) · 3.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
128 lines (124 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
services:
# ipa server
ipa-server:
hostname: 'ipa-server.example.test'
container_name: 'ipa-server'
image: "server:latest"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
networks:
example.test:
ipv4_address: 192.168.155.100
ipv6_address: fd12:4567:789a:1::100
privileged: true
tty: true
volumes:
- type: tmpfs
target: /run
- type: tmpfs
target: /var/run
- ./files/pre/:/ipa_01.conf.d/pre/
- ./files/post/:/ipa_01.conf.d/post/
- ${RUNNER_TEMP:-/tmp/ipa_01_tmp/}:/return/
- ./server.env:/ipa_01.conf.d/env/server.env
- ./common.env:/ipa_01.conf.d/env/common.env
healthcheck:
test: ["CMD-SHELL", "[ -f /ipa_01.ready ] && ipactl status"]
interval: 10s
retries: 54
start_period: 60s
timeout: 10s
# el8 based ipa client
ipa-client-el8:
hostname: 'ipa-client-el8.example.test'
container_name: 'ipa-client-el8'
image: "client/el8:latest"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
networks:
example.test:
ipv4_address: 192.168.155.101
ipv6_address: fd12:4567:789a:1::101
privileged: true
tty: true
volumes:
- type: tmpfs
target: /run
- type: tmpfs
target: /var/run
- ./files/pre/:/ipa_01.conf.d/pre/
- ./files/post/:/ipa_01.conf.d/post/
- ${RUNNER_TEMP:-/tmp/ipa_01_tmp/}:/return/
- ./client.env:/ipa_01.conf.d/env/client.env
env_file:
- common.env
depends_on:
ipa-server:
condition: service_healthy
# el9 based ipa client
ipa-client-el9:
hostname: 'ipa-client-el9.example.test'
container_name: 'ipa-client-el9'
image: "client/el9:latest"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
networks:
example.test:
ipv4_address: 192.168.155.102
ipv6_address: fd12:4567:789a:1::102
privileged: true
tty: true
volumes:
- type: tmpfs
target: /run
- type: tmpfs
target: /var/run
- ./files/pre/:/ipa_01.conf.d/pre/
- ./files/post/:/ipa_01.conf.d/post/
- ${RUNNER_TEMP:-/tmp/ipa_01_tmp/}:/return/
env_file:
- common.env
- client.env
depends_on:
ipa-server:
condition: service_healthy
# test runner that is in charge of testing the functionality and powering off the cluster.
test-runner:
hostname: 'test-runner.example.test'
container_name: 'test-runner'
image: "rockylinux/rockylinux:9"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
networks:
example.test:
ipv4_address: 192.168.155.103
ipv6_address: fd12:4567:789a:1::103
privileged: true
tty: true
volumes:
- ./files/test-runner/:/test-runner/
- ${RUNNER_TEMP:-/tmp/ipa_01_tmp/}:/return/
entrypoint: /usr/bin/bash /test-runner/entrypoint.sh
networks:
example.test:
name: example.test
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 192.168.155.0/24
gateway: 192.168.155.1
- subnet: fd12:4567:789a:1::/64
gateway: fd12:4567:789a:1::1