Makefile variable based

This commit is contained in:
Václav Valíček (YCNet) 2018-02-10 00:14:39 +01:00
parent 84dd531e48
commit 56f6ac2bc6
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938

View File

@ -1,11 +1,14 @@
default: buildall
VOLUME ?= cloner-test
TAGOWNER = valicek1
TAGMAIN = repo-cloner
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
mirror:
docker build -t valicek1/repo-cloner-mirror .
docker build -t $(TAGBASE)-mirror .
run-mirror: mirror
docker run -v $(VOLUME):/data -it --rm valicek1/repo-cloner-mirror
docker run -v $(VOLUME):/data -it --rm $(TAGBASE)-mirror