Skip to content

Commit 97eca2f

Browse files
committed
install tailscale in base image
1 parent ff6df8d commit 97eca2f

File tree

3 files changed

+31
-43
lines changed

3 files changed

+31
-43
lines changed

base-armv7-rpi-bookworm.pifile

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,40 @@ RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/influxdata.gpg] https://re
2222
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9
2323
RUN bash -c "echo 'deb http://deb.debian.org/debian/ bookworm-backports main' >/etc/apt/sources.list.d/bookworm-backports.list"
2424

25+
# Set-up repository for tailscale VPN client
26+
RUN bash -c "curl -1sLf https://pkgs.tailscale.com/stable/raspbian/bookworm.noarmor.gpg >/usr/share/keyrings/tailscale-archive-keyring.gpg"
27+
RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/raspbian bookworm main' >/etc/apt/sources.list.d/tailscale.list"
28+
2529
# Update OS and sources
2630
RUN apt-get update
2731
RUN apt-get upgrade -y
2832

29-
# # Install libqmi for modemmanager
30-
# RUN apt-get install -y libqmi-glib5 libqmi-utils libqmi-proxy libqmi-glib-dev gir1.2-qmi-1.0
31-
#
32-
# # Install modemmanager
33-
# RUN apt-get install -y cmake bash-completion gnome-common gobject-introspection intltool \
34-
# libdbus-1-dev libgirepository1.0-dev libgudev-1.0-dev libmbim-glib-dev libpolkit-gobject-1-dev \
35-
# libsystemd-dev python3-dbus python3-gi
36-
# # Remove plugins that didn't build 'cause they depend on mbim
37-
# RUN bash -c "cd /usr/lib/arm-linux-gnueabihf/ModemManager/; rm *foxconn* *fibocom*"
38-
#
39-
# RUN cd /tmp
40-
# RUN git clone http://raspbian.raspberrypi.com/raspbian/pool/main/m/modemmanager/modemmanager_1.22.0.orig.tar.xz
41-
# RUN cd modemmanager-1.22.0
42-
# RUN meson setup build --prefix=/usr --buildtype=release --sysconfdir=/etc -Dmbim=false -Dgtk_doc=false
43-
# RUN ninja -C build install
44-
# RUN cd
33+
# Install libqmi
34+
RUN apt-get install -y devscripts meson bash-completion gobject-introspection \
35+
libgirepository1.0-dev libglib2.0-dev libgudev-1.0-dev libmbim-glib-dev \
36+
libqrtr-glib-dev gtk-doc-tools help2man glib-2.0 libglib2.0 libglib2.0-doc
37+
WORKDIR /root
38+
RUN git clone https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
39+
WORKDIR /root/libqmi
40+
RUN git checkout 1.35.6-dev
41+
RUN meson setup build --prefix=/usr -Dmbim_qmux=false -Dqrtr=false -Dbash_completion=false --buildtype=release
42+
RUN ninja -C build install
43+
44+
# Install modemmanager
45+
RUN apt-get install -y meson cmake bash-completion gnome-common gobject-introspection intltool \
46+
libdbus-1-dev libgirepository1.0-dev libgudev-1.0-dev libpolkit-gobject-1-dev \
47+
libsystemd-dev python3-dbus python3-gi
48+
# Remove plugins that didn't build 'cause they depend on mbim
49+
#RUN bash -c "cd /usr/lib/arm-linux-gnueabihf/ModemManager/; rm *foxconn* *fibocom*"
50+
WORKDIR /root
51+
RUN bash -c 'curl https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/archive/1.23.12-dev/ModemManager-1.23.12-dev.tar.gz | tar zxf -'
52+
WORKDIR /root/ModemManager-1.23.12-dev
53+
RUN meson setup build --prefix=/usr --buildtype=release --sysconfdir=/etc -Dmbim=false -Dqrtr=false -Dgtk_doc=false -Dbash_completion=false -Dsystemd_suspend_resume=false
54+
RUN ninja -C build install
55+
WORKDIR /root
56+
RUN rm -rf libqmi ModemManager*
4557

4658
# Install from backports
47-
#RUN apt-get install -y modemmanager # -t bullseye-backports
4859
RUN apt-get install -y dhcpcd -t bookworm-backports
4960

5061
# Install some apps, they should be pulled in via dependencies but doing it here causes the
@@ -78,6 +89,7 @@ RUN apt-get install -y \
7889
usbtop \
7990
rsyslog \
8091
logrotate \
81-
openresolv
92+
openresolv \
93+
tailscale
8294

8395
RUN cp /usr/share/dhcpcd/hooks/10-wpa_supplicant /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BASE_IMG=base-$TYPE.img
4040
if [[ -f images/$BASE_ZIP ]]; then
4141
echo ""
4242
echo "*** Extracting base image: $BASE_IMG"
43-
#(cd images; rm -f $BASE_IMG; 7z x -bd $BASE_ZIP $BASE_IMG)
43+
(cd images; rm -f $BASE_IMG; 7z x -bd $BASE_ZIP $BASE_IMG)
4444
else
4545
echo images/$BASE_ZIP not found
4646
echo ""

sg-armv7-rpi-bookworm.pifile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,6 @@ RUN gpg --no-default-keyring --keyring /usr/share/keyrings/sensorgnome.gpg --lis
2828
RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/sensorgnome.gpg] https://sensorgnome.s3.amazonaws.com/' $CODENAME main >/etc/apt/sources.list.d/sensorgnome.list"
2929
RUN apt update
3030

31-
# Install libqmi
32-
RUN apt-get install -y devscripts meson bash-completion gobject-introspection \
33-
libgirepository1.0-dev libglib2.0-dev libgudev-1.0-dev libmbim-glib-dev \
34-
libqrtr-glib-dev gtk-doc-tools help2man glib-2.0 libglib2.0 libglib2.0-doc
35-
WORKDIR /root
36-
RUN git clone https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
37-
WORKDIR /root/libqmi
38-
RUN git checkout 1.35.6-dev
39-
RUN meson setup build --prefix=/usr -Dmbim_qmux=false -Dqrtr=false -Dbash_completion=false --buildtype=release
40-
RUN ninja -C build install
41-
42-
# Install modemmanager
43-
RUN apt-get install -y meson cmake bash-completion gnome-common gobject-introspection intltool \
44-
libdbus-1-dev libgirepository1.0-dev libgudev-1.0-dev libpolkit-gobject-1-dev \
45-
libsystemd-dev python3-dbus python3-gi
46-
# Remove plugins that didn't build 'cause they depend on mbim
47-
#RUN bash -c "cd /usr/lib/arm-linux-gnueabihf/ModemManager/; rm *foxconn* *fibocom*"
48-
WORKDIR /root
49-
RUN bash -c 'curl https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/archive/1.23.12-dev/ModemManager-1.23.12-dev.tar.gz | tar zxf -'
50-
WORKDIR /root/ModemManager-1.23.12-dev
51-
RUN meson setup build --prefix=/usr --buildtype=release --sysconfdir=/etc -Dmbim=false -Dqrtr=false -Dgtk_doc=false -Dbash_completion=false -Dsystemd_suspend_resume=false
52-
RUN ninja -C build install
53-
WORKDIR /root
54-
5531
# Install sensorgnome packages (the has-double line can be deleted when no pre 2023-080 SG exists)
5632
RUN dpkg --print-architecture
5733
RUN mkdir -p /opt/sensorgnome/upgrader

0 commit comments

Comments
 (0)