File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed
tests/images/debian-systemd Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,21 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
22
22
docker \
23
23
python3 \
24
24
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 \
27
35
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
29
40
30
41
# Install gh utility
31
42
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
Original file line number Diff line number Diff line change @@ -13,14 +13,25 @@ RUN apt-get -y update \
13
13
dbus \
14
14
systemd-sysv \
15
15
ssh \
16
- mosquitto \
17
- mosquitto-clients \
18
16
vim.tiny \
19
17
nginx \
20
18
netcat-openbsd \
21
19
iputils-ping \
22
20
net-tools
23
21
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
+
24
35
# Remove unnecessary systemd services
25
36
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
26
37
/etc/systemd/system/*.wants/* \
You can’t perform that action at this time.
0 commit comments