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 - old-menu branch - PR 2 of 3 #407

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.
Adds health-check script to template.

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

All container documentation is in master branch.
@Paraphraser Paraphraser changed the title 20210917 Mosquitto - old-menu branch - PR 2 of 3 20210917 Mosquitto - HTTP not HTTPS during build + health check - old-menu branch - PR 2 of 3 Sep 30, 2021
@Slyke Slyke merged commit 625e3d0 into SensorsIot:old-menu Oct 17, 2021
@Paraphraser Paraphraser deleted the 20210917-mosquitto-old-menu branch October 17, 2021 10:46
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