remove git auto pull as it is managed by a github repo
This commit is contained in:
@@ -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"]
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
mkdir /root/.ssh && cp /ssh/* /root/.ssh && crond -f
|
|
||||||
@@ -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
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user