-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
26 lines (21 loc) · 1.04 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
FROM ev3dev/ev3dev-stretch-ev3-base
# Copy our own binaries
COPY executables/uuidtob62 sling sinter_host /usr/local/bin/
# Copy WiFi drivers
COPY rtl8812cu-driver/8821cu.conf /etc/modprobe.d/
COPY rtl8812cu-driver/8821cu.ko /lib/modules/4.14.117-ev3dev-2.3.5-ev3/drivers/net/wireless/
# Copy configurations and run setup
COPY bootstrap.sh start-sling.sh sling.service panel.service show-secret.sh show-qr.sh /usr/local/bin/
RUN ["bash", "-c", "chmod 755 /usr/local/bin/bootstrap.sh && exec /usr/local/bin/bootstrap.sh"]
# Copy QR code generator
ARG show_qrcode="Show QR Code"
COPY executables/${show_qrcode} /home/robot/
RUN ["bash", "-c", "chmod 755 \"/home/robot/${show_qrcode}\""]
# Copy control panel
ARG service_control="Source Academy Settings"
COPY executables/${service_control} /home/robot/
RUN ["bash", "-c", "chmod 755 \"/home/robot/${service_control}\""]
# Add script to kill a running Source Program
ARG kill_source="Kill Source Program"
COPY executables/${kill_source} /home/robot/
RUN ["bash", "-c", "chmod 755 \"/home/robot/${kill_source}\""]