PROJECT = ppnet REGISTRY = registry.giantswarm.io USERNAME := $(shell swarm user) docker-build: docker build -t $(REGISTRY)/$(USERNAME)/$(PROJECT) . docker-run: docker run -p 8080:80 -ti --rm $(REGISTRY)/$(USERNAME)/$(PROJECT) docker-push: docker-build docker push $(REGISTRY)/$(USERNAME)/$(PROJECT) docker-pull: docker pull $(REGISTRY)/$(USERNAME)/$(PROJECT) swarm-up: docker-push swarm up swarm.json --var=username=$(USERNAME)