repo-cloner/Makefile

24 lines
511 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)
run-once: cloner
2018-02-23 11:28:45 +01:00
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /usr/local/bin/cron-command
run-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