aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2021-01-18 06:23:15 +0000
committerMike Crute <mike@crute.us>2021-01-18 06:23:15 +0000
commit4d88024b44c7bad8460553daaf9c6c0be155cf4e (patch)
treecb6344d33320496a9eda2f1d2c438c4dd81de9e6
parent57a1247457f89e59fea810b6e552ecc594f0dd0d (diff)
downloaddockerfiles-4d88024b44c7bad8460553daaf9c6c0be155cf4e.tar.bz2
dockerfiles-4d88024b44c7bad8460553daaf9c6c0be155cf4e.tar.xz
dockerfiles-4d88024b44c7bad8460553daaf9c6c0be155cf4e.zip
Add mosquitto image
-rw-r--r--mosquitto/Dockerfile9
-rw-r--r--mosquitto/Makefile20
2 files changed, 29 insertions, 0 deletions
diff --git a/mosquitto/Dockerfile b/mosquitto/Dockerfile
new file mode 100644
index 0000000..3ed038b
--- /dev/null
+++ b/mosquitto/Dockerfile
@@ -0,0 +1,9 @@
1FROM alpine:edge
2LABEL maintainer="Mike Crute <mike@crute.us>"
3
4RUN set -euxo pipefail; \
5 apk add --no-cache \
6 mosquitto \
7 ;
8
9CMD [ "/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 @@
1IMAGE=docker.crute.me/mosquitto:latest
2
3all:
4 docker pull alpine:edge
5 docker build -t $(IMAGE) .
6
7all-no-cache:
8 docker build --no-cache -t $(IMAGE) .
9
10run:
11 docker run -d --net=host \
12 -p 53:53/tcp \
13 -p 53:53/udp \
14 -p 953:953 \
15 -v /home/mcrute/tmp/bind/conf:/etc/bind \
16 -v /home/mcrute/tmp/bind/cache:/var/cache/bind \
17 $(IMAGE)
18
19publish:
20 docker push $(IMAGE)