Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20210917 Mosquitto - HTTP not HTTPS during build + health check - master branch - PR 1 of 3 #406

Merged
merged 3 commits into from
Oct 17, 2021

Conversation

Paraphraser
Copy link

A problem affecting the build of the Mosquitto container keeps showing
up in Discord questions. Examples:

The problem is discussed in alpinelinux/docker-alpine issues/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.

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.
@Paraphraser
Copy link
Author

Further on the question of whether the issue affects Node-RED, the answer appears to be "no". Somebody else got there first and replaced https with http in the base image:

$ docker exec nodered cat /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/v3.11/main
http://dl-cdn.alpinelinux.org/alpine/v3.11/community

Adds health-check script to template.

Alters Dockerfile to import health-check script and adds `HEALTHCHECK`
directive.

Updates container documentation to explain behaviour of, and
configuration options for, the health-check agent.
@Paraphraser Paraphraser changed the title 20210917 Mosquitto - master branch - PR 1 of 3 20210917 Mosquitto - HTTP not HTTPS during build + health check - master branch - PR 1 of 3 Sep 30, 2021
@Slyke Slyke merged commit 97334ad into SensorsIot:master Oct 17, 2021
@Paraphraser Paraphraser deleted the 20210917-mosquitto-master branch October 17, 2021 10:46
Paraphraser added a commit to Paraphraser/IOTstack that referenced this pull request May 17, 2022
Adds health-check functionality to Grafana and InfluxDB 1.8, as
discussed in SensorsIot#415.

Health-check functionality already added to Mosquitto via SensorsIot#406.

Closes SensorsIot#415

Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants