forked from Nature40/tRackIT-OS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsOS-vhf.Pifile
68 lines (54 loc) · 1.8 KB
/
tsOS-vhf.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
# Set default ARCH
: ${ARCH:=arm64}
FROM "https://github.com/trackIT-Systems/tsOS-base/releases/download/2025.1.2/tsOS-base-${ARCH}-2025.1.2.zip"
TO "tsOS-vhf-${ARCH}.img"
PUMP 400M
# Set os-release info
NAME="tsOS-vhf"
VERSION_ID=`git describe --tags --always || true`
VERSION_CODENAME=bookworm
RUN tee /etc/os-release <<EOF
PRETTY_NAME="$NAME $VERSION_ID ($VERSION_CODENAME)"
NAME=$NAME
VERSION_ID=$VERSION_ID
VERSION="$VERSION_ID ($VERSION_CODENAME)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://trackit.systems/"
SUPPORT_URL="https://github.com/trackIT-Systems/tsOS-vhf"
BUG_REPORT_URL="https://github.com/trackIT-Systems/tsOS-vhf/issues"
EOF
# Install custom folders
INSTALL boot /boot
INSTALL etc /etc
INSTALL home /home
RUN rm /home/pi/pyradiotracking/.git
INSTALL .git/modules/home/pi/pyradiotracking /home/pi/pyradiotracking/.git
# Fix permissions for pi user
RUN chown -R pi:pi /home/pi/
#################################################
### services configuration
# Blacklist DVB-T driver
RUN tee -a /etc/modprobe.d/raspi-blacklist.conf <<<'blacklist dvb_usb_rtl28xxu'
# Install rtlsdr build dependencies
RUN apt update
RUN apt-get install -y build-essential cmake
WORKDIR /home/pi/librtlsdr
RUN cmake . -DINSTALL_UDEV_RULES=ON
RUN make -j4
RUN make install
RUN ldconfig
RUN python3 -m pip install --break-system-packages -e /home/pi/pyrtlsdr
# Install radiotracking dependencies
RUN python3 -m pip install --break-system-packages dash
# Install radiotracking
RUN python3 -m pip install --break-system-packages -e /home/pi/pyradiotracking
RUN systemctl enable radiotracking.service
RUN systemctl enable radiotracking-config.service
RUN tee -a /etc/sysdweb.conf <<EOF
[radiotracking]
title = RadioTracking | VHF Signal Detection
unit = radiotracking
EOF
# Disable swap
RUN systemctl disable dphys-swapfile.service