repo-cloner/Makefile

19 lines
354 B
Makefile

default: buildall
VOLUME ?= cloner-test
TAGOWNER = valicek1
TAGMAIN = repo-cloner
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
# Mirrorer - root of repo
mirror:
docker build -t $(TAGBASE)-mirror .
run-mirror: mirror
docker run -v $(VOLUME):/data -it --rm $(TAGBASE)-mirror
# Creator - ./creator dir
creator:
docker build -t $(TAGBASE)-creator ./creator-image