From 94104bebb9e4b4ab56e20263801297d4bef8bb52 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Wed, 23 Dec 2020 14:16:10 +0100 Subject: [PATCH] logspout: Sync build script with upstream --- extensions/logspout/build.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/extensions/logspout/build.sh b/extensions/logspout/build.sh index eef0822..c3ff938 100755 --- a/extensions/logspout/build.sh +++ b/extensions/logspout/build.sh @@ -1,18 +1,13 @@ #!/bin/sh -# unmodified from: -# https://github.com/gliderlabs/logspout/blob/67ee3831cbd0594361bb3381380c65bdbeb3c20f/custom/build.sh +# source: https://github.com/gliderlabs/logspout/blob/621524e/custom/build.sh set -e -apk add --update go git mercurial build-base -mkdir -p /go/src/github.com/gliderlabs -cp -r /src /go/src/github.com/gliderlabs/logspout -cd /go/src/github.com/gliderlabs/logspout -export GOPATH=/go -go get +apk add --update go build-base git mercurial ca-certificates +cd /src go build -ldflags "-X main.Version=$1" -o /bin/logspout apk del go git mercurial build-base -rm -rf /go /var/cache/apk/* /root/.glide +rm -rf /root/go /var/cache/apk/* # backwards compatibility ln -fs /tmp/docker.sock /var/run/docker.sock