Skip to content

Commit

Permalink
20210917 Mosquitto - master branch - PR 1 of 3
Browse files Browse the repository at this point in the history
A problem affecting the build of the Mosquitto container keeps showing
up in Discord questions. Examples:

* [2021-09-17](https://discord.com/channels/638610460567928832/638610461109256194/888096248761045022)
* [2021-09-09](https://discord.com/channels/638610460567928832/638610461109256194/885494986710335498)

The problem is discussed in [alpinelinux/docker-alpine issues/98](alpinelinux/docker-alpine#98).

It is not clear whether:

1. The problem is transient (ie those reporting it are able to get past
the problem on a retry);
2. Only affects Mosquitto or potentially affects other Alpine-based
IOTstack containers using `apk` to add packages (eg Node-RED); or
3. Environmental (eg if there is a proxy system between the Raspberry Pi
and dl-cdn.alpinelinux.org).

This Pull Request is implementing the patch suggested by Issue 98 of
reverting `apk` requests to use HTTP.

Given the march towards HTTPS-everywhere, reverting to HTTP might seem
inadvisable but:

* Issue 98 was opened in July 2020.
* There seems to have been no significant progress towards its
resolution since January 2021.
* The Discord traffic suggests it is an ongoing and present issue for
IOTstack users.
  • Loading branch information
Paraphraser committed Sep 17, 2021
1 parent 651a30b commit 131f02e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .templates/mosquitto/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Download base image
FROM eclipse-mosquitto:latest

# see https://github.com/alpinelinux/docker-alpine/issues/98
RUN sed -i 's/https/http/' /etc/apk/repositories

# Add support tools
RUN apk update && apk add --no-cache rsync tzdata

Expand Down

0 comments on commit 131f02e

Please sign in to comment.