-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.test.yml
97 lines (91 loc) · 2.99 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
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
version: '3.7'
networks:
ogc-net:
driver: bridge
services:
test:
image: ghcr.io/datakaveri/geoserver-test:latest
environment:
- LOG_LEVEL=INFO
volumes:
- ./src/:/usr/share/app/src
- /home/ubuntu/configs/ogc-config-dev.json:/usr/share/app/configs/config.json
- /home/ubuntu/configs/ogc-config-test.json:/usr/share/app/configs/test.json
- ./docker/runTests.sh:/usr/share/app/docker/runTests.sh
- ${WORKSPACE}:/tmp/test
- type: volume
source: ogc-volume
target: /usr/share/app/storage/temp-dir
depends_on:
- "s3mock"
ports:
- "8443:8080"
restart: on-failure
networks:
- ogc-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java -jar -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -javaagent:/tmp/jacoco/lib/jacocoagent.jar=output=tcpserver,address=0.0.0.0,port=57070,dumponexit=false -Ddisable.auth=true ./fatjar.jar --host $$(hostname) -c configs/test.json"
integ-test:
image: ghcr.io/datakaveri/geoserver-test:latest
environment:
- LOG_LEVEL=INFO
volumes:
- ./src/:/usr/share/app/src
- /home/ubuntu/configs/ogc-config-dev.json:/usr/share/app/configs/config.json
- /home/ubuntu/configs/ogc-config-test.json:/usr/share/app/configs/test.json
- ./docker/runTests.sh:/usr/share/app/docker/runTests.sh
- ${WORKSPACE}:/tmp/test
- type: volume
source: ogc-volume
target: /usr/share/app/storage/temp-dir
depends_on:
- "s3mock"
ports:
- "8443:8080"
restart: on-failure
networks:
- ogc-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java -jar -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -javaagent:/tmp/jacoco/lib/jacocoagent.jar=output=tcpserver,address=0.0.0.0,port=57070,dumponexit=false -Dfake-token=true ./fatjar.jar --host $$(hostname) -c configs/test.json"
perfTest:
image: ghcr.io/datakaveri/geoserver-test:latest
environment:
- LOG_LEVEL=INFO
volumes:
- /home/ubuntu/configs/ogc-config-dev.json:/usr/share/app/configs/config.json
- type: volume
source: ogc-volume
target: /usr/share/app/storage/temp-dir
depends_on:
- "s3mock"
ports:
- "8443:8080"
restart: on-failure
networks:
- ogc-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$(hostname) -c configs/config.json"
s3mock:
image: adobe/s3mock:3.1.0
environment:
- initialBuckets=bucket1
networks:
ogc-net:
aliases:
- s3.aws-region.amazonaws.com
ports:
- 9090:9090
volumes:
ogc-volume: