-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmicrocks.yaml
More file actions
60 lines (60 loc) · 1.78 KB
/
microcks.yaml
File metadata and controls
60 lines (60 loc) · 1.78 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
services:
mitmproxy:
image: mitmproxy/mitmproxy:10.2.4
user: "0:0"
environment:
MITM_LOG_DIR: /custom-logs
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
command: >
mitmdump
--mode reverse:http://sut-microcks:8080
--listen-host 0.0.0.0
--listen-port 8080
--set keep_host_header=true
-s /addons/minlog.py
volumes:
- ${HOST_LOG_DIR:-./mitm-logs}:/custom-logs
- ./addons:/addons:ro
ports:
- "${HOST_PORT:-8080}:8080"
depends_on:
- sut-microcks
sut-microcks:
build:
dockerfile: ./dockerfiles/microcks.dockerfile
context: ..
environment:
AUTH_PORT: ${AUTH_PORT:-8081}
ports:
- "${JACOCO_PORT:-6300}:6300"
mongodb:
image: mongo:7.0
tmpfs:
- '/data/db'
environment:
MONGODB_REPLICA_SET_MODE: primary
ALLOW_EMPTY_PASSWORD: yes
keycloak:
image: quay.io/keycloak/keycloak:26.0.0
environment:
KEYCLOAK_ADMIN: 'admin'
KEYCLOAK_ADMIN_PASSWORD: 'admin'
KC_HEALTH_ENABLED: 'true'
KC_METRICS_ENABLED: 'true'
volumes:
- ../scripts/dockerize/data/additional_files/microcks/microcks-realm-sample.json:/opt/keycloak/data/import/microcks-realm.json
healthcheck:
test: ['CMD', 'sh', '-c', "echo -e 'GET /health/live HTTP/1.1\r\nHost: localhost\r\n\r\n' > /dev/tcp/localhost/9000"]
interval: 30s
timeout: 30s
retries: 3
ports:
- '${AUTH_PORT:-8081}:8080'
command: ['start-dev', '--hostname=http://localhost:${AUTH_PORT:-8081}', '--import-realm', '--health-enabled=true']
postman:
image: quay.io/microcks/microcks-postman-runtime:0.6.0
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
interval: 30s
timeout: 30s
retries: 3