-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
74 lines (67 loc) · 1.72 KB
/
Dockerfile
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
FROM python:3.9-slim-bullseye
COPY app /app
# Use pip as the build frontend
COPY requirements.txt /app
RUN python -m pip install -r /app/requirements.txt
# For web app:
EXPOSE 8080/tcp
# For NMEA messages from the GPS/compass:
EXPOSE 6200/udp
LABEL version="v1.1.0-beta.1"
# Reference:
# https://docs.bluerobotics.com/ardusub-zola/software/onboard/BlueOS-1.1/development/extensions/
# https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerCreate
LABEL permissions='\
{\
"ExposedPorts": {\
"8080/tcp": {},\
"6200:6200/udp": {}\
},\
"HostConfig": {\
"Binds": [\
"/usr/blueos/extensions/wl_ugps_external:/data:rw"\
],\
"PortBindings": {\
"6200/udp": [\
{\
"HostPort": "6200"\
}\
],\
"8080/tcp": [\
{\
"HostPort": ""\
}\
]\
}\
},\
"Env": [\
"UGPS_HOST=http://192.168.2.94",\
"SEND_RATE=2.0",\
"POLL_RATE=0.0",\
"LOG_NMEA="\
]\
}'
LABEL authors='[\
{\
"name": "Clyde McQueen",\
"email": "clyde@mcqueen.net"\
}\
]'
LABEL company='{\
"about": "",\
"name": "Discovery Bay",\
"email": "clyde@mcqueen.net"\
}'
LABEL type="device-integration"
LABEL tags='[\
"positioning",\
"navigation",\
"short-baseline"\
]'
LABEL readme='https://raw.githubusercontent.com/clydemcqueen/wl_ugps_external_extension/{tag}/README.md'
LABEL links='{\
"website": "https://github.com/clydemcqueen/wl_ugps_external_extension",\
"support": "https://github.com/clydemcqueen/wl_ugps_external_extension/issues"\
}'
LABEL requirements="core >= 1.1"
ENTRYPOINT cd /app && python main.py --ugps_host $UGPS_HOST --send_rate $SEND_RATE --poll_rate $POLL_RATE $LOG_NMEA