-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.nmea.yml
More file actions
77 lines (69 loc) · 2.46 KB
/
docker-compose.nmea.yml
File metadata and controls
77 lines (69 loc) · 2.46 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
version: '3'
services:
source_n2k:
image: ghcr.io/mo-rise/porla:v0.3.0
network_mode: host
restart: always
command:
[
"socat UDP4-RECV:1457,reuseaddr STDOUT | timestamp --rfc3339 | to_bus 1"
]
source_nmea0183:
image: ghcr.io/mo-rise/porla:v0.3.0
network_mode: host
restart: always
command:
[
"socat TCP4-CONNECT:192.168.4.1:1456,reuseaddr STDOUT | timestamp --rfc3339 | to_bus 2"
]
# Raw publishers
raw-pub-nmea2000:
image: ghcr.io/mo-rise/porla-keelson:v0.1.0-pre.5
restart: always
network_mode: "host"
command:
[
"from_bus 1 | b64 --encode '{timestamp} {input}' '{timestamp} {output}' | jsonify '{timestamp} {value}' | shuffle '{payload_pb2js}' 'rise/gota/porla/yden/nmea2000_yden/1457 {payload_pb2js}' | brefv encode '{topic} {payload_pb2js}' '{topic} {envelope}' | zenoh put --base64 --line '{key} {message}'"
]
raw-pub-nmea0183:
image: ghcr.io/mo-rise/porla-keelson:v0.1.0-pre.5
restart: always
network_mode: "host"
command:
[
"from_bus 2 | b64 --encode '{timestamp} {input}' '{timestamp} {output}' | jsonify '{timestamp} {value}' | shuffle '{payload_pb2js}' 'rise/gota/porla/yden/nmea0183/1456 {payload_pb2js}' | brefv encode '{topic} {payload_pb2js}' '{topic} {envelope}' | zenoh put --base64 --line '{key} {message}'"
]
# Parsing the N2K data
decoder_n2k:
image: ghcr.io/mo-rise/porla-nmea:v0.4.1
network_mode: host
restart: always
command:
[
"from_bus 1 | shuffle '{} {data}' '{data}' | analyzer -json | jq --unbuffered -jrc '\"rise/gota/porla/yden/nmea2000_json/\",.pgn, \" \", . + {timestamp: (now | todateiso8601)}, \"\\n\"' | to_bus 11"
]
recorder_n2k_raw:
image: ghcr.io/mo-rise/porla:v0.3.0
network_mode: host
restart: always
volumes:
- ${LOG_LOCATION}:/recordings
working_dir: /recordings
command: [ "from_bus 1 | record n2k_raw.log" ]
# Publishing parsed json
json-pub-n2k:
image: ghcr.io/mo-rise/porla-keelson:v0.1.0-pre.5
restart: always
network_mode: "host"
command:
[
"from_bus 11 | brefv encode '{topic} {payload_raw}' '{topic} {envelope}' | zenoh put --base64 --line '{key} {message}'"
]
recorder_n2k_json:
image: ghcr.io/mo-rise/porla:v0.3.0
network_mode: host
restart: always
volumes:
- ${LOG_LOCATION}:/recordings
working_dir: /recordings
command: [ "from_bus 11 | record n2k_canboat.log" ]