remove git auto pull as it is managed by a github repo

This commit is contained in:
2020-01-21 14:37:08 -06:00
parent 6472557f6d
commit bf39d71900
3 changed files with 0 additions and 27 deletions

View File

@@ -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"]

View File

@@ -1,2 +0,0 @@
#!/usr/bin/env sh
mkdir /root/.ssh && cp /ssh/* /root/.ssh && crond -f

View File

@@ -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