When installing the Mosquitto package from Alpine Linux, we don't need
to save the latest package index to the cache. We are specifically requesting
the latest package index each time we install Mosquitto and not using the local
cache at all (--no-cache).
Signed-off-by: David Audet <david.audet@ca.com>
* Adding Dockerfiles to build versioned Docker images
Dockerfiles have been added to create Docker
images for Mosquitto v1.4.4 and v1.4.8 using Alpine
Linux as a base.
Different directories have been added for each version
to decouple the configuration and entrypoint scripts.
Currently they contain the same content, but this could
change in the future.
Docker Hub will also need to pull from specific directories
when official docker images will be built and hosted on
Docker Hub.
* Removing unnecessary default config and volumes
Mount points are created in the image, but volumes are not automatically
created. The user can still create volumes for these mount points, but is
not required to.
The default configuration file is now copied from /etc/mosquitto/mosquitto.conf
to /mosquitto/config/mosquitto.conf. The user can override this file by
mounting a local configuration file to /mosquitto/config.
Signed-off-by: David Audet <david.audet@ca.com>
Mosquitto database writes are not atomic and if power is lost during
a write the file will be permanently lost. This commit makes writes as
atomic as possible.
Signed-off-by: Keegan Callin <kc@kcallin.net>
Bug: https://github.com/eclipse/mosquitto/issues/189
The context associated with websocket client didn't had listener
filled, which caused use_username_as_clientid to be ignored.
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
The WITH_* flags are not handed over to the C++ wrapper, instead it relies on
the actual library to check status.
Signed-off-by: Johan de Vries (Ubuntu VM) <devries@wivion.nl>
Allows message flow to complete where e.g. the broker didn't persist a
partially complete flow.
Thanks to jsaak jsaak and Hiram van Paassen.
Bug: https://github.com/eclipse/mosquitto/issues/57
libmosquitto shouldn't cancel threads it didn't create. This change
allows us to keep track of whether threads were created by the library
or by external code.
Thanks to Josip Ćavar.
Bug: https://github.com/eclipse/mosquitto/issues/166