aboutsummaryrefslogtreecommitdiff
path: root/phonehome/Makefile
blob: 64cdf2b70362ea5ae9269f07764e6d5b71f0ec0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VERSION=latest
IMAGE=docker.crute.me/phonehome

all:
	docker build -t $(IMAGE):$(VERSION) .

all-no-cache:
	docker build --no-cache \
		-t $(IMAGE):$(VERSION) .

run:
	docker run -ti --net=host \
		-e FWD_PORT=2223 \
		-v $$(pwd)/data:/srv/phonehome \
		$(IMAGE):$(VERSION)

publish:
	docker push $(IMAGE):$(VERSION)
	docker tag $(IMAGE):$(VERSION) $(IMAGE):latest
	docker push $(IMAGE):latest