From bf39d71900ac722f3dc1e93e29fcaa6de87fe811 Mon Sep 17 00:00:00 2001 From: Nam Tran Date: Tue, 21 Jan 2020 14:37:08 -0600 Subject: [PATCH] remove git auto pull as it is managed by a github repo --- sites/005-hugo-extended/git-auto-pull/Dockerfile | 16 ---------------- .../git-auto-pull/entrypoint.sh | 2 -- sites/005-hugo-extended/git-auto-pull/pull.sh | 9 --------- 3 files changed, 27 deletions(-) delete mode 100644 sites/005-hugo-extended/git-auto-pull/Dockerfile delete mode 100644 sites/005-hugo-extended/git-auto-pull/entrypoint.sh delete mode 100644 sites/005-hugo-extended/git-auto-pull/pull.sh diff --git a/sites/005-hugo-extended/git-auto-pull/Dockerfile b/sites/005-hugo-extended/git-auto-pull/Dockerfile deleted file mode 100644 index a152944..0000000 --- a/sites/005-hugo-extended/git-auto-pull/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM alpine as alpine - -RUN apk add --no-cache git openssh-client - -ADD pull.sh entrypoint.sh / -RUN chmod +x pull.sh entrypoint.sh - -ARG INTERVAL=2 -RUN echo "*/${INTERVAL} * * * * /pull.sh" > crontab.txt -RUN crontab crontab.txt - -WORKDIR /repo -VOLUME /repo -VOLUME /ssh - -ENTRYPOINT ["/entrypoint.sh"] diff --git a/sites/005-hugo-extended/git-auto-pull/entrypoint.sh b/sites/005-hugo-extended/git-auto-pull/entrypoint.sh deleted file mode 100644 index 8e95c64..0000000 --- a/sites/005-hugo-extended/git-auto-pull/entrypoint.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -mkdir /root/.ssh && cp /ssh/* /root/.ssh && crond -f diff --git a/sites/005-hugo-extended/git-auto-pull/pull.sh b/sites/005-hugo-extended/git-auto-pull/pull.sh deleted file mode 100644 index f073af7..0000000 --- a/sites/005-hugo-extended/git-auto-pull/pull.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -e -LOG=/var/log/pull.log -touch $LOG -echo `date`": start pulling" >> $LOG -cd /repo && git pull >> $LOG 2>&1 -echo `date`": done" >> $LOG - -