forked from Consensys/orchestrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.e2e.yml
96 lines (88 loc) · 2.95 KB
/
docker-compose.e2e.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
version: "3.7"
x-default-variables: &default-variables
API_URL: ${API_URL-http://api:8081}
API_METRICS_URL: ${API_METRICS_URL-http://api:8082}
LOG_LEVEL: ${LOG_LEVEL-info}
LOG_FORMAT: ${LOG_FORMAT-}
MULTI_TENANCY_ENABLED: ${MULTI_TENANCY_ENABLED-}
AUTH_API_KEY: ${AUTH_API_KEY-}
AUTH_JWT_ISSUER_URL: ${AUTH_JWT_ISSUER_URL-}
AUTH_JWT_AUDIENCE: ${AUTH_JWT_AUDIENCE-}
AUTH_JWT_ORCHESTRATE_CLAIMS: ${AUTH_JWT_ORCHESTRATE_CLAIMS-}
KAFKA_URL: ${KAFKA_URL-kafka:29092}
KAFKA_SASL_ENABLED: ${KAFKA_SASL_ENABLED-false}
KAFKA_SASL_MECHANISM: ${KAFKA_SASL_MECHANISM-PLAIN}
KAFKA_SASL_USER: ${KAFKA_SASL_USER-}
KAFKA_SASL_PASSWORD: ${KAFKA_SASL_PASSWORD-}
KAFKA_TLS_ENABLED: ${KAFKA_TLS_ENABLED-false}
KAFKA_TLS_INSECURE_SKIP_VERIFY: ${KAFKA_TLS_INSECURE_SKIP_VERIFY-false}
TOPIC_TX_SENDER: ${TOPIC_TX_SENDER-}
TOPIC_TX_RECOVER: ${TOPIC_TX_RECOVER-}
TOPIC_TX_DECODED: ${TOPIC_TX_DECODED-}
x-container-common: &container-common
image: golang:1.16.9
restart: ${CONTAINER_RESTART-on-failure}
entrypoint: /bin/main
networks:
- orchestrate
tty: true
x-e2e-variables: &e2e-variables
CUCUMBER_OUTPUTPATH: "/report/output/report.json"
CUCUMBER_PATHS: "/features"
ARTIFACTS_PATH: "/artifacts"
CUCUMBER_FORMAT: "cucumber"
CUCUMBER_CONCURRENCY: ${CUCUMBER_CONCURRENCY-}
CUCUMBER_TAGS: ${CUCUMBER_TAGS-}
TEST_GLOBAL_DATA: ${TEST_GLOBAL_DATA-}
CUCUMBER_STEPS_TIMEOUT: ${CUCUMBER_STEPS_TIMEOUT-30s}
KAFKA_CONSUMER_GROUP_NAME: ${KAFKA_CONSUMER_GROUP_NAME-e2e}
x-stress-variables: &stress-variables
ARTIFACTS_PATH: "/artifacts"
STRESS_CONCURRENCY: ${STRESS_CONCURRENCY-30}
STRESS_ITERATIONS: ${STRESS_ITERATIONS-500}
STRESS_TIMEOUT: ${STRESS_TIMEOUT-15m}
TEST_GLOBAL_DATA: ${TEST_GLOBAL_DATA-}
KAFKA_CONSUMER_GROUP_NAME: ${KAFKA_CONSUMER_GROUP_NAME-stress}
services:
e2e:
<<: *container-common
environment:
<<: *default-variables
<<: *e2e-variables
restart: "no"
command: e2e
volumes:
- ./build/bin/e2e:/bin/main
- ./build/report:/report/output
- ./tests/features:/features
- ./tests/artifacts:/artifacts
- ./scripts/deps/certificates:/certificates
report:
build: ./scripts/report
environment:
METADATA_TAG: ${CI_COMMIT_TAG-}
METADATA_BRANCH: ${CI_COMMIT_BRANCH-}
METADATA_COMMIT: ${CI_COMMIT_SHORT_SHA-}
METADATA_OS: ${CI_RUNNER_EXECUTABLE_ARCH-}
METADATA_RUNNER: ${CI_RUNNER_DESCRIPTION-}
METADATA_RUNNER_ID: ${CI_RUNNER_ID-}
METADATA_RUNNER_VERSION: ${CI_RUNNER_REVISION-}
CUCUMBER_INPUT: in/report.json
CUCUMBER_OUTPUT: out/report.html
volumes:
- ./build/report:/usr/src/app/in
- ./build/report:/usr/src/app/out
stress:
<<: *container-common
environment:
<<: *default-variables
<<: *stress-variables
restart: "no"
command: stress
volumes:
- ./build/bin/stress:/bin/main
- ./tests/artifacts:/artifacts
networks:
orchestrate:
external:
name: orchestrate