diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..89f47bd --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +creator/* diff --git a/creator/Dockerfile b/creator/Dockerfile new file mode 100644 index 0000000..87990bc --- /dev/null +++ b/creator/Dockerfile @@ -0,0 +1,11 @@ +# Alpine base image +FROM alpine:edge + +VOLUME /data + +RUN apk add --no-cache bash docker openssh-keygen + + +CMD [ "/bin/bash" ] + + diff --git a/creator/build.sh b/creator/build.sh new file mode 100755 index 0000000..6cc341f --- /dev/null +++ b/creator/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker build -t repo-cloner-creator . diff --git a/creator/run.sh b/creator/run.sh new file mode 100755 index 0000000..f5bf62c --- /dev/null +++ b/creator/run.sh @@ -0,0 +1,4 @@ +#!/bin/bash +docker build -t repo-cloner-creator . +docker run -v /var/run/docker.sock:/var/run/docker.sock -it --rm repo-cloner-creator +