Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-built binaries #108

Open
deajan opened this issue Jun 17, 2023 · 2 comments
Open

Pre-built binaries #108

deajan opened this issue Jun 17, 2023 · 2 comments

Comments

@deajan
Copy link

deajan commented Jun 17, 2023

Hello,

Mind to provide pre-built binaries for postfix_exporter ?
Saved my day, but the compiling isn't that easy when you're not a 'go guy'.

Thanks.

@dminuoso
Copy link

dminuoso commented Feb 8, 2024

You can build it using docker if you like:

https://github.com/kumina/postfix_exporter/blob/master/build_static.sh

Similarly, if you check out that script, you can make the same invocations on your linux machine by hand.

@rob4226
Copy link

rob4226 commented Apr 23, 2024

It actually wasn't too bad to build. I built a static binary on Ubuntu like this:

apt install golang-go libsystemd-dev
git clone https://github.com/kumina/postfix_exporter.git
cd postfix_exporter
go get -d ./...
go build -a -tags static_all
strip postfix_exporter

Here's the static postfix_exporter binary I built for postfix_exporter v0.3.0 Linux amd64 (with systemd support):
https://1drv.ms/u/s!AgTQYOEcEzBLqsRTGrWhZLCylYcisw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants