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 75 76 77 78 79 80 | # # This is an example of a Wharfie image # with pyload. It is derived from the # docker container writl/pyload # FROM debian_armel_stretch TO raspberrypi.tar RUN sed -i 's,main,main non-free,' /etc/apt/sources.list RUN apt-get update && apt-get install -y --no-install-recommends \ systemd-sysv \ dhcpcd5 \ wpasupplicant \ kmod \ wireless-tools \ net-tools \ openssh-server \ python \ locales \ python-setuptools \ python-requests \ python-pycurl \ python-crypto \ python-imaging \ python-pyxmpp \ python-jinja2 \ python-thrift \ python-feedparser \ python-beautifulsoup \ python-pip \ tesseract-ocr \ python-beaker \ unrar \ gocr \ python-django \ git \ rhino \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ && pip install Send2Trash # Set the locale RUN locale-gen en_US.UTF-8 RUN git clone https://github.com/pyload/pyload.git /opt/pyload \ && cd /opt/pyload \ && git checkout stable \ && echo "/opt/pyload/pyload-config" > /opt/pyload/module/config/configdir ADD pyload-config/ /opt/pyload/pyload-config ADD ../common/files/pyload.service /etc/systemd/system/pyload.service # Add user 'wharfie' with password 'wharfie' for interactive login RUN useradd -ms /bin/bash wharfie; echo "wharfie:wharfie" | chpasswd; echo "root:root" | chpasswd; # Add fstab ADD ../common/files/fstab /etc/fstab # Change Hostname RUN HOST [ -f /usr/share/dict/words ] && printf "Wharfie-%s" $(grep '^[A-Z]' /usr/share/dict/words | sed -n "$(expr ${RANDOM} % $(grep '^[A-Z]' /usr/share/dict/words | wc -l))p" | sed "s,'.*,,") > etc/hostname # # Wireless # # Add files for wireless network configuration 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; \ systemctl enable pyload.service; # # Bootstrategy: Raspberry PI # RUN HOST \ ../../bootstrategy/raspberrypi.sh rpi.img |