mirror of https://github.com/gitwatch/gitwatch
Run gitwatch in Docker container
Run example with ssh keys from host: docker run -d --restart unless-stopped --name gitwatch -v /root/.ssh/:/root/.ssh/ -v /opt/repo_to_sync/:/repo -v /root/.gitconfig:/root/.gitconfig salanki:gitwatch -r origin /repopull/30/head
parent
61c1aacd7d
commit
a516c45dcf
@ -0,0 +1,10 @@
|
||||
FROM alpine:3.1
|
||||
RUN apk add --update bash git inotify-tools openssh && rm -rf /var/cache/apk/*
|
||||
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
ADD gitwatch.sh ./
|
||||
|
||||
RUN chmod 755 *.sh
|
||||
|
||||
ENTRYPOINT ["./gitwatch.sh"]
|
Loading…
Reference in New Issue