forked from sensorgnome-org/sensorgnome-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base-armv7-rpi-bullseye.pifile
60 lines (52 loc) · 2.29 KB
/
base-armv7-rpi-bullseye.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
# Create ARMv7 bullseye image for RaspberryPi Sensorgnome
FROM images/$IMAGE_IMG
TO images/base-$TYPE-temp.img
PUMP 2G
# Set-up nodejs repository so we can get a modern version
RUN bash -c "curl -1sLf https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg"
RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main' >/etc/apt/sources.list.d/nodesource.list"
# Set-up repository for caddy (web server)
RUN apt-get install -y debian-keyring debian-archive-keyring apt-transport-https
RUN bash -c "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg"
RUN bash -c "curl -1sLf -o /etc/apt/sources.list.d/caddy-stable.list 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt'"
# Set-up repository for telegraf (monitoring agent)
RUN bash -c "curl -1sLf 'https://repos.influxdata.com/influxdata-archive_compat.key' | gpg --dearmor -o /usr/share/keyrings/influxdata.gpg"
RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/influxdata.gpg] https://repos.influxdata.com/debian stable main' >/etc/apt/sources.list.d/influxdata.list"
# Set-up bullseye backports (we need modemmanager from there specifically)
# apt only installs packages from this repo if -t bullseye-backports is specified
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9
RUN bash -c "echo 'deb http://deb.debian.org/debian/ bullseye-backports main' >/etc/apt/sources.list.d/bullseye-backports.list"
# Update OS and sources
RUN apt-get update
RUN apt-get upgrade -y
# Install modemmanager from backports
RUN apt-get install -y modemmanager -t bullseye-backports
# Install some apps, they should be pulled in via dependencies but doing it here causes the
# installation time to be absorbed into the base build.
RUN apt-get remove npm -y
RUN apt-get install -y \
udhcpc \
autossh \
sqlite3 \
gpsd \
gpsd-tools \
chrony \
libjson-perl \
libpam0g-dev \
nodejs \
caddy \
telegraf \
vim \
tmux \
tcpdump \
traceroute \
fish \
libnss3-tools \
iptables \
git \
libqmi-utils \
lshw \
ifmetric \
python3-pip \
vnstat \
usbtop