Skip to content

Commit d7298cb

Browse files
committed
install latest mosquitto from debian sid repository
mosquitto >= 2.0.18 is currently only available from the side repo and it fixes some bugs with the bridge that thin-edge.io is reliant on Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
1 parent 76aae0b commit d7298cb

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
2222
docker \
2323
python3 \
2424
python3-pip \
25-
python3-venv \
26-
# tedge dependencies
25+
python3-venv
26+
27+
# tedge dependencies
28+
# Install more recent version of mosquitto >= 2.0.18 from debian sid to avoid mosquitto following bugs:
29+
# The mosquitto repo can't be used as it does not included builds for arm64/aarch64 (only amd64 and armhf)
30+
# * https://github.com/eclipse/mosquitto/issues/2604 (2.0.11)
31+
# * https://github.com/eclipse/mosquitto/issues/2634 (2.0.15)
32+
RUN sh -c "echo 'deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian sid main' > /etc/apt/sources.list.d/debian-sid.list" \
33+
&& apt-get update \
34+
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
2735
mosquitto \
28-
mosquitto-clients
36+
mosquitto-clients \
37+
# Remove sid afterwards to prevent unexpected packages from being installed
38+
&& rm -f /etc/apt/sources.list.d/debian-sid.list \
39+
&& apt-get update
2940

3041
# Install gh utility
3142
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \

tests/images/debian-systemd/debian-systemd.dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,25 @@ RUN apt-get -y update \
1313
dbus \
1414
systemd-sysv \
1515
ssh \
16-
mosquitto \
17-
mosquitto-clients \
1816
vim.tiny \
1917
nginx \
2018
netcat-openbsd \
2119
iputils-ping \
2220
net-tools
2321

22+
# Install more recent version of mosquitto >= 2.0.18 from debian sid to avoid mosquitto following bugs:
23+
# The mosquitto repo can't be used as it does not included builds for arm64/aarch64 (only amd64 and armhf)
24+
# * https://github.com/eclipse/mosquitto/issues/2604 (2.0.11)
25+
# * https://github.com/eclipse/mosquitto/issues/2634 (2.0.15)
26+
RUN sh -c "echo 'deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian sid main' > /etc/apt/sources.list.d/debian-sid.list" \
27+
&& apt-get update \
28+
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
29+
mosquitto \
30+
mosquitto-clients \
31+
# Remove sid afterwards to prevent unexpected packages from being installed
32+
&& rm -f /etc/apt/sources.list.d/debian-sid.list \
33+
&& apt-get update
34+
2435
# Remove unnecessary systemd services
2536
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
2637
/etc/systemd/system/*.wants/* \

0 commit comments

Comments
 (0)