Select Git revision
-
ale authored
Implement a simpler API for the Backend interface, removing most old public methods and replacing them with a single Call() method, making the package look a bit more like an actual rpc package (so, hopefully, easier to replace in the future).
ale authoredImplement a simpler API for the Backend interface, removing most old public methods and replacing them with a single Call() method, making the package look a bit more like an actual rpc package (so, hopefully, easier to replace in the future).
build_static.sh 370 B
#!/bin/sh
docker run -i -v `pwd`:/dovecot_exporter alpine:3.8 /bin/sh << 'EOF'
set -ex
# Install prerequisites for the build process.
apk update
apk add ca-certificates git go libc-dev
update-ca-certificates
# Build the dovecot_exporter.
cd /dovecot_exporter
export GOPATH=/gopath
go get -d ./...
go build --ldflags '-extldflags "-static"'
strip dovecot_exporter
EOF