{"architecture":"amd64","config":{"ExposedPorts":{"1883/tcp":{}},"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","VERSION=2.0.20","DOWNLOAD_SHA256=ebd07d89d2a446a7f74100ad51272e4a8bf300b61634a7812e19f068f2759de8","GPG_KEYS=A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7","LWS_VERSION=4.2.1","LWS_SHA256=842da21f73ccba2be59e680de10a8cce7928313048750eb6ad73b6fa50763c51"],"Entrypoint":["/docker-entrypoint.sh"],"Cmd":["/usr/sbin/mosquitto","-c","/mosquitto/config/mosquitto.conf"],"Volumes":{"/mosquitto/data":{},"/mosquitto/log":{}},"Labels":{"description":"Eclipse Mosquitto MQTT Broker","maintainer":"Roger Light \u003croger@atchoo.org\u003e"},"ArgsEscaped":true},"created":"2024-10-16T19:28:05Z","history":[{"created":"2024-09-06T22:20:07.740564901Z","created_by":"/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / "},{"created":"2024-09-06T22:20:07.972381771Z","created_by":"/bin/sh -c #(nop) CMD [\"/bin/sh\"]","empty_layer":true},{"created":"2024-10-16T19:28:05Z","created_by":"LABEL maintainer=Roger Light \u003croger@atchoo.org\u003e description=Eclipse Mosquitto MQTT Broker","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-10-16T19:28:05Z","created_by":"ENV VERSION=2.0.20 DOWNLOAD_SHA256=ebd07d89d2a446a7f74100ad51272e4a8bf300b61634a7812e19f068f2759de8 GPG_KEYS=A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 LWS_VERSION=4.2.1 LWS_SHA256=842da21f73ccba2be59e680de10a8cce7928313048750eb6ad73b6fa50763c51","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-10-16T19:28:05Z","created_by":"RUN /bin/sh -c set -x \u0026\u0026 apk --no-cache add --virtual build-deps build-base cmake cjson-dev gnupg linux-headers openssl-dev util-linux-dev \u0026\u0026 wget https://github.com/warmcat/libwebsockets/archive/v${LWS_VERSION}.tar.gz -O /tmp/lws.tar.gz \u0026\u0026 echo \"$LWS_SHA256 /tmp/lws.tar.gz\" | sha256sum -c - \u0026\u0026 mkdir -p /build/lws \u0026\u0026 tar --strip=1 -xf /tmp/lws.tar.gz -C /build/lws \u0026\u0026 rm /tmp/lws.tar.gz \u0026\u0026 cd /build/lws \u0026\u0026 cmake . -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -DDISABLE_WERROR=ON -DLWS_IPV6=ON -DLWS_WITHOUT_BUILTIN_GETIFADDRS=ON -DLWS_WITHOUT_CLIENT=ON -DLWS_WITHOUT_EXTENSIONS=ON -DLWS_WITHOUT_TESTAPPS=ON -DLWS_WITH_EXTERNAL_POLL=ON -DLWS_WITH_HTTP2=OFF -DLWS_WITH_SHARED=OFF -DLWS_WITH_ZIP_FOPS=OFF -DLWS_WITH_ZLIB=OFF \u0026\u0026 make -j \"$(nproc)\" \u0026\u0026 rm -rf /root/.cmake \u0026\u0026 wget https://mosquitto.org/files/source/mosquitto-${VERSION}.tar.gz -O /tmp/mosq.tar.gz \u0026\u0026 echo \"$DOWNLOAD_SHA256 /tmp/mosq.tar.gz\" | sha256sum -c - \u0026\u0026 wget https://mosquitto.org/files/source/mosquitto-${VERSION}.tar.gz.asc -O /tmp/mosq.tar.gz.asc \u0026\u0026 export GNUPGHOME=\"$(mktemp -d)\" \u0026\u0026 found=''; for server in hkps://keys.openpgp.org hkp://keyserver.ubuntu.com:80 pgp.mit.edu ; do echo \"Fetching GPG key $GPG_KEYS from $server\"; gpg --keyserver \"$server\" --keyserver-options timeout=10 --recv-keys \"$GPG_KEYS\" \u0026\u0026 found=yes \u0026\u0026 break; done; test -z \"$found\" \u0026\u0026 echo \u003e\u00262 \"error: failed to fetch GPG key $GPG_KEYS\" \u0026\u0026 exit 1; gpg --batch --verify /tmp/mosq.tar.gz.asc /tmp/mosq.tar.gz \u0026\u0026 gpgconf --kill all \u0026\u0026 rm -rf \"$GNUPGHOME\" /tmp/mosq.tar.gz.asc \u0026\u0026 mkdir -p /build/mosq \u0026\u0026 tar --strip=1 -xf /tmp/mosq.tar.gz -C /build/mosq \u0026\u0026 rm /tmp/mosq.tar.gz \u0026\u0026 make -C /build/mosq -j \"$(nproc)\" CFLAGS=\"-Wall -O2 -I/build/lws/include -I/build\" LDFLAGS=\"-L/build/lws/lib\" WITH_ADNS=no WITH_DOCS=no WITH_SHARED_LIBRARIES=yes WITH_SRV=no WITH_STRIP=yes WITH_WEBSOCKETS=yes prefix=/usr binary \u0026\u0026 addgroup -S -g 1883 mosquitto 2\u003e/dev/null \u0026\u0026 adduser -S -u 1883 -D -H -h /var/empty -s /sbin/nologin -G mosquitto -g mosquitto mosquitto 2\u003e/dev/null \u0026\u0026 mkdir -p /mosquitto/config /mosquitto/data /mosquitto/log \u0026\u0026 install -d /usr/sbin/ \u0026\u0026 install -s -m755 /build/mosq/client/mosquitto_pub /usr/bin/mosquitto_pub \u0026\u0026 install -s -m755 /build/mosq/client/mosquitto_rr /usr/bin/mosquitto_rr \u0026\u0026 install -s -m755 /build/mosq/client/mosquitto_sub /usr/bin/mosquitto_sub \u0026\u0026 install -s -m644 /build/mosq/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1 \u0026\u0026 install -s -m755 /build/mosq/src/mosquitto /usr/sbin/mosquitto \u0026\u0026 install -s -m755 /build/mosq/apps/mosquitto_ctrl/mosquitto_ctrl /usr/bin/mosquitto_ctrl \u0026\u0026 install -s -m755 /build/mosq/apps/mosquitto_passwd/mosquitto_passwd /usr/bin/mosquitto_passwd \u0026\u0026 install -s -m755 /build/mosq/plugins/dynamic-security/mosquitto_dynamic_security.so /usr/lib/mosquitto_dynamic_security.so \u0026\u0026 install -m644 /build/mosq/mosquitto.conf /mosquitto/config/mosquitto.conf \u0026\u0026 install -Dm644 /build/lws/LICENSE /usr/share/licenses/libwebsockets/LICENSE \u0026\u0026 install -Dm644 /build/mosq/epl-v20 /usr/share/licenses/mosquitto/epl-v20 \u0026\u0026 install -Dm644 /build/mosq/edl-v10 /usr/share/licenses/mosquitto/edl-v10 \u0026\u0026 chown -R mosquitto:mosquitto /mosquitto \u0026\u0026 apk --no-cache add ca-certificates cjson \u0026\u0026 apk del build-deps \u0026\u0026 rm -rf /build # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-10-16T19:28:05Z","created_by":"VOLUME [/mosquitto/data /mosquitto/log]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-10-16T19:28:05Z","created_by":"COPY docker-entrypoint.sh mosquitto-no-auth.conf / # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-10-16T19:28:05Z","created_by":"EXPOSE map[1883/tcp:{}]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-10-16T19:28:05Z","created_by":"ENTRYPOINT [\"/docker-entrypoint.sh\"]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-10-16T19:28:05Z","created_by":"CMD [\"/usr/sbin/mosquitto\" \"-c\" \"/mosquitto/config/mosquitto.conf\"]","comment":"buildkit.dockerfile.v0","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85","sha256:02a4da1095fa64083d932784a9ac8a63ff02e3cf25fd785c1802f57ca51d985f","sha256:8d9d2687a4c5bcffd5f7cde1f3d1de8c0470460ac9855af4f6dea5699c82524c"]}}