repo-cloner/Makefile

31 lines
711 B
Makefile
Raw Normal View History

2018-02-10 00:11:48 +01:00
default: buildall
VOLUME ?= cloner-test
2018-02-10 00:14:39 +01:00
TAGOWNER = valicek1
TAGMAIN = repo-cloner
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
2018-02-10 00:11:48 +01:00
2018-02-10 00:19:17 +01:00
# Mirrorer - root of repo
2018-02-10 00:11:48 +01:00
mirror:
2018-02-10 00:14:39 +01:00
docker build -t $(TAGBASE)-mirror .
2018-02-10 00:11:48 +01:00
run-mirror: mirror
2018-02-10 00:14:39 +01:00
docker run -v $(VOLUME):/data -it --rm $(TAGBASE)-mirror
2018-02-10 00:11:48 +01:00
2018-02-10 00:57:16 +01:00
# Creator - ./creator-image dir
2018-02-10 00:19:17 +01:00
creator:
docker build -t $(TAGBASE)-creator ./creator-image
2018-02-10 00:35:20 +01:00
run-creator: creator
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-creator
2018-02-10 00:57:16 +01:00
# Launcher - ./launcher-image
launcher:
docker build -t $(TAGBASE)-launcher ./launcher-image
run-launcher: launcher
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-launcher
# wizzard
wizzard: mirror run-creator