From 4d88024b44c7bad8460553daaf9c6c0be155cf4e Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Mon, 18 Jan 2021 06:23:15 +0000 Subject: Add mosquitto image --- mosquitto/Dockerfile | 9 +++++++++ mosquitto/Makefile | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 mosquitto/Dockerfile create mode 100644 mosquitto/Makefile diff --git a/mosquitto/Dockerfile b/mosquitto/Dockerfile new file mode 100644 index 0000000..3ed038b --- /dev/null +++ b/mosquitto/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:edge +LABEL maintainer="Mike Crute " + +RUN set -euxo pipefail; \ + apk add --no-cache \ + mosquitto \ + ; + +CMD [ "/usr/sbin/mosquitto", "-v" ] diff --git a/mosquitto/Makefile b/mosquitto/Makefile new file mode 100644 index 0000000..5f50baf --- /dev/null +++ b/mosquitto/Makefile @@ -0,0 +1,20 @@ +IMAGE=docker.crute.me/mosquitto:latest + +all: + docker pull alpine:edge + docker build -t $(IMAGE) . + +all-no-cache: + docker build --no-cache -t $(IMAGE) . + +run: + docker run -d --net=host \ + -p 53:53/tcp \ + -p 53:53/udp \ + -p 953:953 \ + -v /home/mcrute/tmp/bind/conf:/etc/bind \ + -v /home/mcrute/tmp/bind/cache:/var/cache/bind \ + $(IMAGE) + +publish: + docker push $(IMAGE) -- cgit v1.2.3