[r2]: / trunk / wharfie / examples / Tutorial / Wharfile  Maximize  Restore  History

Download this file

16 lines (11 with data), 630 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
FROM debian_armel_stretch
TO rpi.tar

RUN apt-get update && apt-get install -y -no-install-recommends systemd-sysv dhcpcd5 wpa_supplicant openssh

ADD ../common/files/fstab /etc/fstab

RUN useradd -ms /bin/bash wharfie; echo "wharfie:wharfie" | chpasswd; echo "root:root" | chpasswd;

ADD ../common/files/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ADD ../common/files/wireless.conf /etc/modules-load.d/wireless.conf
RUN sed -i 's,^Requires,#Requires,' /lib/systemd/system/wpa_supplicant@.service; \
    systemctl enable wpa_supplicant@wlan0.service;

RUN HOST \
    ../../bootstrategy/raspberrypi.sh rpi.img