repo-cloner/Makefile

21 lines
460 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
run-creator: creator
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-creator