@@ -22,29 +22,40 @@ RUN bash -c "echo 'deb [signed-by=/usr/share/keyrings/influxdata.gpg] https://re
22
22
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9
23
23
RUN bash -c "echo 'deb http://deb.debian.org/debian/ bookworm-backports main' >/etc/apt/sources.list.d/bookworm-backports.list"
24
24
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
+
25
29
# Update OS and sources
26
30
RUN apt-get update
27
31
RUN apt-get upgrade -y
28
32
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*
45
57
46
58
# Install from backports
47
- #RUN apt-get install -y modemmanager # -t bullseye-backports
48
59
RUN apt-get install -y dhcpcd -t bookworm-backports
49
60
50
61
# 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 \
78
89
usbtop \
79
90
rsyslog \
80
91
logrotate \
81
- openresolv
92
+ openresolv \
93
+ tailscale
82
94
83
95
RUN cp /usr/share/dhcpcd/hooks/10-wpa_supplicant /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant
0 commit comments