-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (73 loc) · 2.08 KB
/
docker-compose.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
services:
gds:
stop_grace_period: 3s
user: user
build:
context: .
dockerfile: Dockerfile
args:
- HOST_UID=${HOST_UID:-1000}
- HOST_GID=${HOST_GID:-1000}
- progress=plain
image: $FSW_IMG
command: "fprime-gds -n --ip-port=$UPLINK_TARGET_PORT --tts-port=$DOWNLINK_TARGET_PORT --dictionary ./dict/FlightComputerTopologyAppDictionary.xml"
working_dir: ${DEPLOYMENT_ROOT}/build-artifacts/Linux/FlightComputer/
ports:
- $GDB_PORT:5555
- $DOWNLINK_TARGET_PORT:50050
- $GDS_WEB_GUI_PORT:5000
- $UPLINK_TARGET_PORT:50000
volumes:
- ${SCRIPT_DIR}:${FSW_WDIR}
network_mode: host # uses the host's network stack
healthcheck:
test: ["CMD-SHELL", "pgrep fprime-gds"]
interval: 2s
timeout: 3s
retries: 25
start_period: 3s
fsw:
stop_grace_period: 1s
user: user
build:
context: .
dockerfile: Dockerfile
args:
- HOST_UID=${HOST_UID:-1000}
- HOST_GID=${HOST_GID:-1000}
- progress=plain
image: $FSW_IMG
working_dir: ${DEPLOYMENT_ROOT}
environment:
- GEVENT_SUPPORT=True
- HOST_UID=${HOST_UID:-1000}
- HOST_GID=${HOST_GID:-1000}
- UPLINK_TARGET_PORT=$UPLINK_TARGET_PORT
- FPRIME_CONFIG_DIR=/MBSE_FSW/FlightComputer/config
- SSH_AUTH_SOCK=/ssh-agent
- PATH=/home/user/STARS/autocoder:/home/user/.local/bin:${PATH} # TODO should check is necessary
volumes:
- ${SCRIPT_DIR}:${FSW_WDIR}
ports:
- "${GDB_PORT}:${GDB_PORT}"
- $DOWNLINK_TARGET_PORT:50050
- $GDS_WEB_GUI_PORT:5000
network_mode: host # uses the host's network stack
security_opt:
- seccomp:unconfined
cap_add:
- SYS_NICE
# For gdbserver's addr space randomization
- SYS_PTRACE
ulimits:
rtprio: 99
healthcheck:
test: ["CMD-SHELL", "pgrep FlightComputer"]
interval: 2s
timeout: 3s
retries: 25
start_period: 5s
# depends_on:
# gds:
# condition: service_healthy
# restart: true