This Docker image is used for building grok_exporter releases. See the release.sh script for how it is used.
The image is available on Docker hub. The sources are on Github.
To build the image from scratch on an Intel processor, run the following:
git clone https://github.com/fstab/docker-grok_exporter-compiler.git
cd docker-grok_exporter-compiler
docker build -t fstab/grok_exporter-compiler-amd64 -f Dockerfile.amd64 .
To build the image from scratch on an ARM 64 Bit processor (like a Scaleway server), run the following:
git clone https://github.com/fstab/docker-grok_exporter-compiler.git
cd docker-grok_exporter-compiler
docker build -t fstab/grok_exporter-compiler-arm64v8 -f Dockerfile.arm64v8 .
To build the image from scratch on an ARM 32 Bit processor (like Raspberry Pi), run the following:
git clone https://github.com/fstab/docker-grok_exporter-compiler.git
cd docker-grok_exporter-compiler
docker build -t fstab/grok_exporter-compiler-arm32v6 -f Dockerfile.arm32v6 .
Example call to build a grok_exporter release:
go get github.com/fstab/grok_exporter
cd $GOPATH/src/github.com/fstab/grok_exporter
git submodule update --init --recursive
./release.sh
See github.com/fstab/grok_exporter for more info.