From 1887e1cca6e988786c600660f2e1090bf69cbf2e Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 26 Aug 2023 23:22:18 +0200 Subject: git: add runner to mirror github projects --- roles/git/files/runner-mirror/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/git/files/runner-mirror/Dockerfile (limited to 'roles/git/files/runner-mirror/Dockerfile') 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"] -- cgit v1.2.3