Merged wizzard

This commit is contained in:
Václav Valíček (YCNet) 2018-02-23 10:23:06 +01:00
parent 06437ac0b8
commit 81b6097351
No known key found for this signature in database
GPG Key ID: 7CF44871CEA75938
4 changed files with 4 additions and 29 deletions

View File

@ -3,7 +3,7 @@ FROM alpine:edge
VOLUME /data
RUN apk add --no-cache git bash openssh parallel shadow ; \
RUN apk add --no-cache git bash openssh parallel openssh-keygen vim shadow ; \
useradd -ms /bin/bash executor ; \
chown executor:executor /data ; \
echo "* * * * * /usr/local/bin/cron-command" >> /etc/crontabs/executor ; \

View File

@ -1,14 +1,10 @@
default: buildall
default: cloner
VOLUME ?= cloner-test
GLOBALVOL ?= cloner-global
TAGOWNER = valicek1
TAGMAIN = repo-cloner
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
buildall: mirror creator launcher
cloner:
docker build -t $(TAGBASE) .
@ -21,19 +17,7 @@ run-once: cloner
run-bash: cloner
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /bin/bash
# Creator - ./creator-image dir
creator:
docker build -t $(TAGBASE)-creator ./creator-image
run-creator: creator
docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm $(TAGBASE)-creator
# wizzard
# auth dir could be executable (to list)
wizzard: mirror run-creator
wizzard: cloner
docker run -v $(GLOBALVOL):/data -it --rm $(TAGBASE) /usr/local/bin/wizzard
# CI Detector
detector:
docker build -t cloner-mirror-dev .
docker run -it --rm -v tester-gitt:/data cloner-mirror-dev

View File

@ -1,9 +0,0 @@
# Alpine base image
FROM alpine:edge
RUN apk add --no-cache bash docker openssh-keygen vim
ADD entrypoint /bin/
CMD [ "/bin/entrypoint" ]