forked from eclipse-velocitas/vehicle-app-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
executable file
·120 lines (114 loc) · 2.84 KB
/
docker-compose.dev.yml
File metadata and controls
executable file
·120 lines (114 loc) · 2.84 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
services:
dev:
build:
context: .
dockerfile: Dockerfile.dev
args:
USERNAME: vscode
USER_UID: 1000
USER_GID: 1000
container_name: velocitas-cpp-dev
hostname: velocitas-dev
privileged: true
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
init: true
volumes:
- .:/workspace:cached
- velocitas-build:/workspace/build-linux-x86_64
- velocitas-conan:/home/vscode/.conan2
- velocitas-cache:/home/vscode/.cache
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITHUB_API_TOKEN=${GITHUB_API_TOKEN:-}
- SDV_MIDDLEWARE_TYPE=native
- SDV_VEHICLEDATABROKER_ADDRESS=vehicledatabroker:55555
- SDV_MQTT_ADDRESS=mosquitto:1883
- START_RUNTIME=false
ports:
- "8080:8080"
- "30555:30555"
- "55555:55555"
- "1883:1883"
networks:
- velocitas-network
working_dir: /workspace
stdin_open: true
tty: true
command: /bin/bash
mosquitto:
image: eclipse-mosquitto:2.0
container_name: velocitas-mosquitto
hostname: mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- mosquitto-data:/mosquitto/data
- mosquitto-logs:/mosquitto/log
- ./config/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
networks:
- velocitas-network
restart: unless-stopped
vehicledatabroker:
image: ghcr.io/eclipse/kuksa.val/databroker:0.4.3
container_name: velocitas-vdb
hostname: vehicledatabroker
ports:
- "55555:55555"
environment:
- KUKSA_DATA_BROKER_ADDR=0.0.0.0
- KUKSA_DATA_BROKER_PORT=55555
networks:
- velocitas-network
restart: unless-stopped
kuksa-client:
image: ghcr.io/eclipse-kuksa/kuksa-python-sdk/kuksa-client:main
container_name: velocitas-kuksa-client
hostname: kuksa-client
network_mode: host
depends_on:
- vehicledatabroker
stdin_open: true
tty: true
command: ["grpc://localhost:55555"]
profiles:
- testing
runtime-test:
build:
context: .
dockerfile: Dockerfile.dev
container_name: velocitas-runtime-test
environment:
- SDV_MIDDLEWARE_TYPE=native
- SDV_VEHICLEDATABROKER_ADDRESS=vehicledatabroker:55555
- SDV_MQTT_ADDRESS=mosquitto:1883
- START_RUNTIME=true
volumes:
- .:/workspace:cached
- velocitas-build:/workspace/build-linux-x86_64
networks:
- velocitas-network
depends_on:
- mosquitto
- vehicledatabroker
profiles:
- testing
command: ["build-app", "-r"]
volumes:
velocitas-build:
driver: local
velocitas-conan:
driver: local
velocitas-cache:
driver: local
mosquitto-data:
driver: local
mosquitto-logs:
driver: local
networks:
velocitas-network:
driver: bridge
name: velocitas-network