Skip to content

Commit

Permalink
Merge pull request #115 from thin-edge/fix-use-mosquitto-2.0.11
Browse files Browse the repository at this point in the history
fix: use mosquitto 2.0.11 by default
  • Loading branch information
reubenmiller authored Oct 22, 2024
2 parents 9ad0cbf + 5d302bf commit 095c38a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions images/debian-systemd/debian-systemd.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@ RUN apt-get -y update \
collectd-core \
# extra collectd shared libraries
libmnl0 \
vim.tiny
vim.tiny \
mosquitto \
mosquitto-clients

# Note: Avoid using mosquitto 2.0.18 due to a session persistence bug when using `per_listener_settings true
# Only comment out the custom install logic to make it easier to re-enable once the bug is resolved
# See https://github.com/thin-edge/thin-edge.io/issues/3185 for more details
# Install more recent version of mosquitto >= 2.0.18 from debian backports to avoid mosquitto following bugs:
# The mosquitto repo can't be used as it does not included builds for arm64/aarch64 (only amd64 and armhf)
# * https://github.com/eclipse/mosquitto/issues/2604 (2.0.11)
# * https://github.com/eclipse/mosquitto/issues/2634 (2.0.15)
RUN sh -c "echo 'deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/debian-bookworm-backports.list" \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install -t bookworm-backports \
mosquitto \
mosquitto-clients
# * https://github.com/eclipse/mosquitto/issues/2618 (2.0.18)
#RUN sh -c "echo 'deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/debian-bookworm-backports.list" \
# && apt-get update \
# && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install -t bookworm-backports \
# mosquitto \
# mosquitto-clients

# Remove unnecessary systemd services
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
Expand Down

4 comments on commit 095c38a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
7 0 0 7 100 44.927s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
14 0 0 14 100 59.619s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
11 0 2 11 100 53.874999999s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
31 0 2 31 100 3m57.529s

Please sign in to comment.