-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
59 lines (54 loc) · 1.43 KB
/
docker-compose.test.yml
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
services:
minio:
image: minio/minio:RELEASE.2024-10-29T16-01-48Z
command: server /data --console-address ""
environment:
MINIO_BROWSER: off
# Generate S3 Access Key (20 chars, uppercase alphanumeric)
# MINIO_ROOT_USER=$(openssl rand -hex 10 | tr 'a-z' 'A-Z')
# Generate S3 Secret Key (40 chars, mixed case alphanumeric)
# MINIO_ROOT_PASSWORD=$(openssl rand -base64 30 | tr '+/' 'xx' | cut -c1-40)
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/ready"]
interval: 5s
timeout: 5s
retries: 5
networks:
- minio-network
volumes:
- minio-data:/data
tmpfs:
- /tmp
# - /data
sut:
image: sut
build: .
networks:
- minio-network
depends_on:
- minio
tmpfs:
- /tmp
volumes:
- ./tests:/config:ro
environment:
MINIO_SERVER_URL: http://minio:9000
# These must match the root user credentials on minio
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
entrypoint:
- /bin/sh
- -c
command:
- |
set -ex
ansible-playbook playbooks/main.yml
for config in $(ls /config/extra_vars/*.yml); do
ansible-playbook playbooks/main.yml --extra-vars "@$${config}"
done
volumes:
minio-data: {}
networks:
minio-network: {}