From ac3be9e9a556a452b37b6647676151cd7d98f9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek=20=28YCNet=29?= Date: Thu, 8 Feb 2018 15:22:17 +0100 Subject: [PATCH] First step for repo-cloner-creator --- .dockerignore | 1 + creator/Dockerfile | 11 +++++++++++ creator/build.sh | 2 ++ creator/run.sh | 4 ++++ 4 files changed, 18 insertions(+) create mode 100644 .dockerignore create mode 100644 creator/Dockerfile create mode 100755 creator/build.sh create mode 100755 creator/run.sh 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 +