-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPifile
36 lines (28 loc) · 1.02 KB
/
Pifile
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
FROM https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-09-26/2022-09-22-raspios-bullseye-arm64-lite.img.xz
PUMP 100M
# Set an insane default pass
RUN bash -c 'echo -n "pi:" > /boot/userconf.txt'
RUN bash -c 'echo "supersicher" | openssl passwd -6 -stdin >> /boot/userconf.txt'
# Enable SSH
RUN raspi-config nonint do_ssh 0
# Enable serial
RUN raspi-config nonint do_serial 0
# Configure WiFi
RUN raspi-config nonint do_wifi_country DE
RUN rfkill unblock wifi
RUN bash -c 'wpa_passphrase "hsmr" "supersicher" >> /etc/wpa_supplicant/wpa_supplicant.conf'
# Install fs overlay
INSTALL fs /
# Configure sshfs
RUN mkdir /mnt/wega
RUN tee -a /etc/fstab <<< "sshfs#[email protected]:webs/hsmr_cc/docs /mnt/wega fuse port=7331,uid=0,gid=0,_netdev,delay_connect,reconnect 0 0"
# Install deps
RUN apt-get update
RUN apt install -y \
python3 \
python3-dateutil \
python3-paho-mqtt \
sshfs
# Install and enable spaceapi service
INSTALL 0555 spaceapi.py /usr/bin/spaceapi
RUN systemctl enable spaceapi.service