diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-26 23:22:18 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-26 23:22:18 +0200 |
commit | 1887e1cca6e988786c600660f2e1090bf69cbf2e (patch) | |
tree | 679b01f4007bda29e22028e3aab1181e7fd69fb7 /roles/git/files/runner-mirror/Dockerfile | |
parent | 2cab07c316fe414f0b1061b40fd7a9ae0e0b6a9c (diff) | |
download | ansible-memzero-1887e1cca6e988786c600660f2e1090bf69cbf2e.tar.gz ansible-memzero-1887e1cca6e988786c600660f2e1090bf69cbf2e.zip |
git: add runner to mirror github projects
Diffstat (limited to 'roles/git/files/runner-mirror/Dockerfile')
-rw-r--r-- | roles/git/files/runner-mirror/Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/git/files/runner-mirror/Dockerfile b/roles/git/files/runner-mirror/Dockerfile new file mode 100644 index 0000000..112548a --- /dev/null +++ b/roles/git/files/runner-mirror/Dockerfile @@ -0,0 +1,15 @@ +FROM alpine:latest + +RUN apk add --update-cache --upgrade --no-cache --purge \ + git openssh-client tzdata \ + && rm -rf /var/cache/apk + +ENV TZ=Europe/Berlin +WORKDIR /tmp + +# Copy ssh config. +COPY config /root/.ssh/config + +COPY mirror.sh / +COPY periodic.sh / +ENTRYPOINT ["/periodic.sh"] |