From fc256f21c917893ba99149e473fa6ee30667de79 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 23 Jun 2018 15:38:35 -0400 Subject: [PATCH] add watchtower Signed-off-by: Jess Frazelle --- latest-versions.sh | 1 + watchtower/Dockerfile | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 watchtower/Dockerfile diff --git a/latest-versions.sh b/latest-versions.sh index 2a58f79..f970cc8 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -126,6 +126,7 @@ hashicorp/terraform kdlucas/byte-unixbench mitchellh/vagrant hashicorp/vault +v2tec/watchtower wireguard/wireguard znc/znc apache/zookeeper diff --git a/watchtower/Dockerfile b/watchtower/Dockerfile new file mode 100644 index 0000000..75a952d --- /dev/null +++ b/watchtower/Dockerfile @@ -0,0 +1,35 @@ +FROM alpine:latest +LABEL maintainer "Jess Frazelle " + +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" ]