forked from GreenmaskIO/greenmask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-integration.yml
More file actions
180 lines (169 loc) · 4.29 KB
/
docker-compose-integration.yml
File metadata and controls
180 lines (169 loc) · 4.29 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
services:
storage:
profiles: ["pg13", "pg14", "pg15", "pg16", "pg17", "pg18", "all"]
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
- "MINIO_ROOT_USER=Q3AM3UQ867SPQQA43P2F"
- "MINIO_ROOT_PASSWORD=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
entrypoint: sh
command: >
-c 'mkdir -p /export/testbucket
&& dd if=/dev/random count=10 > /export/testbucket/test.bin
&& minio server /export --console-address :9001'
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
start_period: 5s
interval: 10s
timeout: 5s
retries: 2
db-18:
profiles: ["pg18", "all"]
volumes:
- "/var/lib/postgresql/18/data"
image: postgres:18
ports:
- "54318:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: ["CMD", "psql", "-U", "postgres"]
interval: 5s
timeout: 1s
retries: 3
db-17:
profiles: ["pg17", "all"]
volumes:
- "/var/lib/postgresql/data"
image: postgres:17
ports:
- "54317:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: ["CMD", "psql", "-U", "postgres"]
interval: 5s
timeout: 1s
retries: 3
db-16:
profiles: ["pg16", "all"]
volumes:
- "/var/lib/postgresql/data"
image: postgres:16
ports:
- "54316:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: ["CMD", "psql", "-U", "postgres"]
interval: 5s
timeout: 1s
retries: 3
db-15:
profiles: ["pg15", "all"]
volumes:
- "/var/lib/postgresql/data"
image: postgres:15
ports:
- "54315:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: ["CMD", "psql", "-U", "postgres"]
interval: 5s
timeout: 1s
retries: 3
db-14:
profiles: ["pg14", "all"]
volumes:
- "/var/lib/postgresql/data"
image: postgres:14
ports:
- "54314:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: ["CMD", "psql", "-U", "postgres"]
interval: 5s
timeout: 1s
retries: 3
db-13:
profiles: ["pg13", "all"]
volumes:
- "/var/lib/postgresql/data"
image: postgres:13
ports:
- "54313:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: ["CMD", "psql", "-U", "postgres"]
interval: 5s
timeout: 1s
retries: 3
test-dbs-filler:
profiles: ["pg13", "pg14", "pg15", "pg16", "pg17", "pg18", "all"]
image: greenmask-test-dbs-filler:latest
environment:
PGPASSWORD: "example"
FILE_DUMP: "demo-small-en.zip"
TMP_DIR: "/tmp/schema"
PG_VERSIONS_CHECK: "13,14,15,16,17,18"
# volumes:
# - "/tmp/greenmask_tests:/tmp/schema"
build:
context: docker/integration/filldb
depends_on:
db-13:
condition: service_healthy
required: false
db-14:
condition: service_healthy
required: false
db-15:
condition: service_healthy
required: false
db-16:
condition: service_healthy
required: false
db-17:
condition: service_healthy
required: false
db-18:
condition: service_healthy
required: false
greenmask:
profiles: ["pg13", "pg14", "pg15", "pg16", "pg17", "pg18", "all"]
image: greenmask-integration:latest
volumes:
- "/tmp"
environment:
PG_VERSIONS_CHECK: "13,14,15,16,17,18"
PG_USER: postgres
PG_PASSWORD: example
PG_DATABASE: demo
PG_PORT: 5432
PG_HOST_TEMPLATE: db-<version>
TEMP_DIR: "/tmp"
GREENMASK_BIN_PATH: "/var/lib/greenmask/"
STORAGE_S3_ENDPOINT: "http://storage:9000"
STORAGE_S3_BUCKET: "testbucket"
STORAGE_S3_REGION: "us-east-1"
STORAGE_S3_ACCESS_KEY_ID: "Q3AM3UQ867SPQQA43P2F"
STORAGE_S3_SECRET_KEY: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
build:
dockerfile: docker/integration/tests/Dockerfile
context: ./
depends_on:
test-dbs-filler:
condition: service_completed_successfully
storage:
condition: service_healthy