forked from stackql/stackql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dependencies-dev.yml
94 lines (93 loc) · 4.24 KB
/
docker-compose-dependencies-dev.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
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
version: "3.9"
services:
mockserver:
image: stackql/integration
build:
context: .
cache_from:
- stackql/integration
target: integration
volumes:
- ./vol/srv/credentials:/opt/stackql/srv/credentials:rw
environment:
- MOCKSERVER_PORT_GOOGLE=${MOCKSERVER_PORT_GOOGLE:-1080}
- MOCKSERVER_PORT_OKTA=${MOCKSERVER_PORT_OKTA:-1090}
- MOCKSERVER_PORT_AWS=${MOCKSERVER_PORT_AWS:-1091}
- MOCKSERVER_PORT_K8S=${MOCKSERVER_PORT_K8S:-1092}
- MOCKSERVER_PORT_GITHUB=${MOCKSERVER_PORT_GITHUB:-1093}
- MOCKSERVER_PORT_REGISTRY=${MOCKSERVER_PORT_REGISTRY:-1094}
- MOCKSERVER_PORT_AZURE=${MOCKSERVER_PORT_AZURE:-1095}
- MOCKSERVER_PORT_SUMOLOGIC=${MOCKSERVER_PORT_SUMOLOGIC:-1096}
ports:
- "${MOCKSERVER_PORT_GOOGLE:-1080}:${MOCKSERVER_PORT_GOOGLE:-1080}/tcp"
- "${MOCKSERVER_PORT_OKTA:-1090}:${MOCKSERVER_PORT_OKTA:-1090}/tcp"
- "${MOCKSERVER_PORT_AWS:-1091}:${MOCKSERVER_PORT_AWS:-1091}/tcp"
- "${MOCKSERVER_PORT_K8S:-1092}:${MOCKSERVER_PORT_K8S:-1092}/tcp"
- "${MOCKSERVER_PORT_GITHUB:-1093}:${MOCKSERVER_PORT_GITHUB:-1093}/tcp"
- "${MOCKSERVER_PORT_REGISTRY:-1094}:${MOCKSERVER_PORT_REGISTRY:-1094}/tcp"
- "${MOCKSERVER_PORT_AZURE:-1095}:${MOCKSERVER_PORT_AZURE:-1095}/tcp"
- "${MOCKSERVER_PORT_SUMOLOGIC:-1096}:${MOCKSERVER_PORT_SUMOLOGIC:-1096}/tcp"
command:
- bash
- -c
- |
MOCKSERVER_JAR='/opt/test/stackql/test/downloads/mockserver-netty-5.12.0-shaded.jar'
JSON_INIT_FILE_DIR='/opt/test/stackql/test/mockserver/expectations'
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-gcp-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_GOOGLE}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-github-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_GITHUB}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-aws-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_AWS}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-k8s-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_K8S}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-registry-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_REGISTRY}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-okta-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_OKTA}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-sumologic-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_SUMOLOGIC}&
java -Dfile.encoding=UTF-8 \
-Dmockserver.initializationJsonPath=$${JSON_INIT_FILE_DIR}/static-azure-expectations.json \
-Dmockserver.logLevel=OFF \
-Droot.logLevel=OFF \
-jar $${MOCKSERVER_JAR} \
-serverPort $${MOCKSERVER_PORT_AZURE}
postgres_stackql:
image: postgres:14.5-bullseye
hostname: postgres_stackql
volumes:
- ./vol/postgres/setup:/docker-entrypoint-initdb.d:ro
- ./vol/postgres/dev/data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=stackql
ports:
- "7432:5432/tcp"