Skip to content
Snippets Groups Projects
Select Git revision
  • abf367e3b9e3c2f9a051fb0282cf955087b15a6c
  • master default protected
  • renovate/github.com-blevesearch-bleve-v2-2.x
  • renovate/golang-1.x
  • sql
  • batch
  • debian
  • search_api
  • 0.2.1e
  • 0.2.1d
  • 0.2.1c
  • 0.2.1b
  • 0.2.1a
  • 0.2.1
14 results

opf.go

Blame
  • 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