diff --git a/Dockerfile b/Dockerfile index 8dbe285..bb6e789 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ; \ diff --git a/Makefile b/Makefile index d08208a..efe111d 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/creator-image/Dockerfile b/creator-image/Dockerfile deleted file mode 100644 index f2be50b..0000000 --- a/creator-image/Dockerfile +++ /dev/null @@ -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" ] - diff --git a/creator-image/entrypoint b/dockerbin/wizzard similarity index 100% rename from creator-image/entrypoint rename to dockerbin/wizzard