-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
56 lines (51 loc) · 1.54 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
FROM python:3.9-alpine
RUN apk add --no-cache wget
RUN mkdir /virtualhere
WORKDIR /virtualhere
# Download the appropriate binary based on architecture
RUN case "$(uname -m)" in \
aarch64) \
wget -O vhusbd https://virtualhere.com/sites/default/files/usbserver/vhusbdarm64 ;; \
armv7l|armhf) \
wget -O vhusbd https://virtualhere.com/sites/default/files/usbserver/vhusbdarm ;; \
x86_64) \
wget -O vhusbd https://virtualhere.com/sites/default/files/usbserver/vhusbdx86_64 ;; \
*) \
echo "Unsupported architecture: $(uname -m)" && exit 1 ;; \
esac && \
chmod +x vhusbd
RUN echo $PWD
LABEL version="1.0.5"
LABEL permissions='\
{\
"NetworkMode": "host",\
"HostConfig": {\
"Binds": [\
"/usr/blueos/extensions/virtualhere:/virtualhere/config:rw"\
],\
"Privileged": true,\
"NetworkMode": "host"\
}\
}'
LABEL authors='[\
{\
"name": "Willian Galvani",\
"email": "[email protected]"\
}\
]'
LABEL company='{\
"about": "",\
"name": "Blue Robotics",\
"email": "[email protected]"\
}'
LABEL type="other"
LABEL tags='[\
"communication"\
]'
LABEL readme='https://raw.githubusercontent.com/Williangalvani/BlueOS-VirtualHere/{tag}/Readme.md'
LABEL links='{\
"website": "https://github.com/Williangalvani/BlueOS-VirtualHere",\
"support": "https://github.com/Williangalvani/BlueOS-VirtualHere/issues"\
}'
LABEL requirements="core >= 1.1"
ENTRYPOINT ["/virtualhere/vhusbd", "-c", "/virtualhere/config/config.ini" ]