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 - experimental branch - PR 3 of 3 #408

Merged

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.

Also harmonises Mosquitto Dockerfile on experimental branch with the
common versions on master and old-menu branches.

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.

Also harmonises Mosquitto Dockerfile on experimental branch with the
common versions on master and old-menu branches.
`docker-entrypoint.sh` was out-of-sync with master and old-menu
versions. `iotstack_defaults` directory missing.
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 - experimental branch - PR 3 of 3 20210917 Mosquitto - HTTP not HTTPS during build + health check - experimental branch - PR 3 of 3 Sep 30, 2021
@Slyke Slyke merged commit 9d790cb into SensorsIot:experimental Oct 17, 2021
@Paraphraser Paraphraser deleted the 20210917-mosquitto-experimental 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