-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
41 lines (38 loc) · 954 Bytes
/
docker-compose.test.yml
File metadata and controls
41 lines (38 loc) · 954 Bytes
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
# Docker Compose for integration tests
# Uses test manifests from tests/integration/
services:
test-server:
build:
context: .
target: server
image: puppetc-server:latest
container_name: puppetc-test-server
ports:
- "8141:8140"
volumes:
- ./tests/integration/manifests:/etc/puppet/manifests:ro
- ./tests/integration/modules:/etc/puppet/modules:ro
- ./tests/integration/hiera:/etc/puppet/hiera:ro
networks:
- puppet-test
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8140/status"]
interval: 5s
timeout: 3s
retries: 5
test-agent:
build:
context: .
target: agent
image: puppetc-agent:latest
privileged: true
depends_on:
test-server:
condition: service_healthy
environment:
- PUPPET_SERVER=http://test-server:8140
networks:
- puppet-test
networks:
puppet-test:
driver: bridge