add watchtower

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-06-23 15:38:35 -04:00
parent e29c10baee
commit fc256f21c9
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 36 additions and 0 deletions

View File

@ -126,6 +126,7 @@ hashicorp/terraform
kdlucas/byte-unixbench
mitchellh/vagrant
hashicorp/vault
v2tec/watchtower
wireguard/wireguard
znc/znc
apache/zookeeper

35
watchtower/Dockerfile Normal file
View File

@ -0,0 +1,35 @@
FROM alpine:latest
LABEL maintainer "Jess Frazelle <jess@linux.com>"
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk --no-cache add \
ca-certificates
ENV WATCHTOWER_VERSION v0.3.0
RUN buildDeps=' \
bash \
go \
git \
gcc \
g++ \
libc-dev \
libgcc \
make \
' \
set -x \
&& apk --no-cache add $buildDeps \
&& git clone --depth 1 --branch ${WATCHTOWER_VERSION} https://github.com/v2tec/watchtower /go/src/github.com/v2tec/watchtower \
&& go get github.com/Masterminds/glide \
&& cd /go/src/github.com/v2tec/watchtower \
&& glide install \
&& go build -o /usr/bin/watchtower \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "watchtower" ]
CMD [ "--help" ]