This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Base.Pifile
75 lines (64 loc) · 1.95 KB
/
Base.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
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
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 800M
# Update OS and sources
RUN apt-get update
# Install basic software
RUN apt-get install -y \
python3 python3-pip \
i2c-tools \
vim \
git \
mosh \
libusb-1.0-0-dev
RUN pip3 install --upgrade pip
# Install networking tools
RUN apt-get install -y \
tcpdump \
hostapd \
dnsmasq \
bridge-utils \
iptables
# install wireguard (requires rpi-update from above)
RUN bash -c "wget http://archive.raspbian.org/raspbian.public.key -O - | apt-key add -"
RUN tee -a /etc/apt/sources.list.d/testing.list <<EOF
deb http://archive.raspbian.org/raspbian testing main
EOF
RUN tee -a /etc/apt/preferences.d/limit-testing <<EOF
Package: *
Pin: release a=testing
Pin-Priority: 50
EOF
RUN apt-get update
RUN apt-get install -y wireguard-tools
# Install caddy
RUN bash -c "curl -L https://github.com/caddyserver/caddy/releases/download/v2.4.5/caddy_2.4.5_linux_arm64.tar.gz | tar xz caddy"
RUN mv caddy /usr/bin/caddy
RUN groupadd --system caddy
RUN useradd --system \
--gid caddy \
--create-home \
--home-dir /var/lib/caddy \
--shell /usr/sbin/nologin \
--comment "Caddy web server" \
caddy
# Install filebrowser
RUN bash -c "curl -L https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-arm64-filebrowser.tar.gz | tar xz filebrowser"
RUN mv filebrowser /usr/bin/filebrowser
# Install mosquitto
RUN apt-get install -y mosquitto mosquitto-clients
# Install sysdweb dependecies
RUN apt-get install -y python3-systemd python3-dbus libdbus-glib-1-dev
# Install pyradiotracking dependecies
RUN apt-get install -y \
rtl-sdr \
python3 \
python3-pip \
python3-numpy \
python3-scipy \
python3-paho-mqtt
RUN python3 -m pip install dash
# Install GPS / NTP software
RUN apt-get install --no-install-recommends -y \
gpsd \
gpsd-clients \
chrony