aboutsummaryrefslogtreecommitdiff
path: root/mosquitto/Makefile
blob: 5f50baf9d19d036aa7944a7c7c42d5a748afad2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)