damouse / multiarch-docker-mosquitto

amd64, arm64, and armfh builds of a mosquitto broker published to Dockerhub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiarch Dockerized Mosquitto

This is the backing repo for a containerized Mosquitto broker that supports amd64 (x86_64), arm64v8/aarch64, and armfh (for raspberry pi).

This is a multi-arch build of three existing mosquitto containers.

Running

Building and Pushing

docker build . -f armhf.dockerfile  -t damouse/mosquitto:armhf
docker push damouse/mosquitto:armhf

docker build . -f amd64.dockerfile -t damouse/mosquitto:amd64
docker push damouse/mosquitto:amd64

docker build . -f arm64.dockerfile -t  damouse/mosquitto:arm64v8
docker push damouse/mosquitto:arm64v8

Creating the manifest for multi-arch files the first time:

docker manifest create damouse/mosquitto:latest damouse/mosquitto:armhf damouse/mosquitto:amd64 damouse/mosquitto:arm64v8

docker manifest annotate damouse/mosquitto:latest damouse/mosquitto:armhf --os linux --arch arm

docker manifest annotate damouse/mosquitto:latest damouse/mosquitto:amd64 --os linux --arch amd64

docker manifest annotate damouse/mosquitto:latest damouse/mosquitto:arm64v8 --os linux --arch arm64v8

docker manifest push damouse/mosquitto:latest

Credits

Shoutout to (sbierman)[https://github.com/sbiermann/rpi-mosquitto/blob/master/Dockerfile], (toke)[https://github.com/toke/docker-mosquitto], and (brettmiller)[https://github.com/brettmiller/docker-mosquitto-arm64].

About

amd64, arm64, and armfh builds of a mosquitto broker published to Dockerhub


Languages

Language:Dockerfile 99.1%Language:Shell 0.9%