2018-02-10 00:11:48 +01:00
|
|
|
default: buildall
|
|
|
|
|
|
|
|
VOLUME ?= cloner-test
|
2018-02-23 10:17:37 +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
|
|
|
|
2018-02-13 14:42:59 +01:00
|
|
|
|
|
|
|
buildall: mirror creator launcher
|
|
|
|
|
2018-02-23 10:17:37 +01:00
|
|
|
cloner:
|
|
|
|
docker build -t $(TAGBASE) .
|
|
|
|
|
|
|
|
run: cloner
|
|
|
|
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE)
|
|
|
|
|
|
|
|
run-once: cloner
|
|
|
|
docker run -v $(GLOBALVOL):/data -it --rm --user=executor $(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
|
|
|
|
|
|
|
|
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:44:07 +01:00
|
|
|
|
|
|
|
# wizzard
|
2018-02-23 10:17:37 +01:00
|
|
|
# auth dir could be executable (to list)
|
2018-02-10 00:44:07 +01:00
|
|
|
wizzard: mirror run-creator
|
2018-02-13 14:42:59 +01:00
|
|
|
|
|
|
|
# CI Detector
|
|
|
|
detector:
|
|
|
|
docker build -t cloner-mirror-dev .
|
|
|
|
docker run -it --rm -v tester-gitt:/data cloner-mirror-dev
|