repo-cloner/Makefile

28 lines
632 B
Makefile
Raw Normal View History

2018-02-23 10:23:06 +01:00
default: cloner
2018-02-10 00:11:48 +01:00
GLOBALVOL ?= cloner-global
2018-02-10 00:14:39 +01:00
TAGOWNER = valicek1
TAGMAIN = repo-cloner
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
2018-02-10 00:11:48 +01:00
cloner:
docker build -t $(TAGBASE) .
run: cloner
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE)
2018-02-23 11:42:13 +01:00
once: cloner
2018-02-23 11:28:45 +01:00
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /usr/local/bin/cron-command
2018-02-23 11:42:13 +01:00
bash: cloner
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /bin/bash
2018-02-10 00:11:48 +01:00
# wizzard
2018-02-23 10:23:06 +01:00
wizzard: cloner
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /usr/local/bin/wizzard
2018-02-23 11:42:13 +01:00
singleshot: cloner
docker run -v $(GLOBALVOL):/data -e BASE=/data/cloner-t456 --user executor -it --rm $(TAGBASE) run-checker