28 lines
632 B
Makefile
28 lines
632 B
Makefile
default: cloner
|
|
|
|
GLOBALVOL ?= cloner-global
|
|
TAGOWNER = valicek1
|
|
TAGMAIN = repo-cloner
|
|
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
|
|
|
|
cloner:
|
|
docker build -t $(TAGBASE) .
|
|
|
|
run: cloner
|
|
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE)
|
|
|
|
once: cloner
|
|
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /usr/local/bin/cron-command
|
|
|
|
bash: cloner
|
|
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /bin/bash
|
|
|
|
# wizzard
|
|
wizzard: cloner
|
|
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /usr/local/bin/wizzard
|
|
|
|
singleshot: cloner
|
|
docker run -v $(GLOBALVOL):/data -e BASE=/data/cloner-t456 --user executor -it --rm $(TAGBASE) run-checker
|
|
|
|
|