|
a |
|
b/trunk/wharfie/examples/Tutorial/Wharfile |
|
|
1 |
FROM debian_armel_stretch |
|
|
2 |
TO rpi.tar |
|
|
3 |
|
|
|
4 |
RUN apt-get update && apt-get install -y -no-install-recommends systemd-sysv dhcpcd5 wpa_supplicant openssh |
|
|
5 |
|
|
|
6 |
ADD ../common/files/fstab /etc/fstab |
|
|
7 |
|
|
|
8 |
RUN useradd -ms /bin/bash wharfie; echo "wharfie:wharfie" | chpasswd; echo "root:root" | chpasswd; |
|
|
9 |
|
|
|
10 |
ADD ../common/files/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf |
|
|
11 |
ADD ../common/files/wireless.conf /etc/modules-load.d/wireless.conf |
|
|
12 |
RUN sed -i 's,^Requires,#Requires,' /lib/systemd/system/wpa_supplicant@.service; \ |
|
|
13 |
systemctl enable wpa_supplicant@wlan0.service; |
|
|
14 |
|
|
|
15 |
RUN HOST \ |
|
|
16 |
../../bootstrategy/raspberrypi.sh rpi.img |