Docker image to build elastic/beats for Raspberry Pi
The image has a couple of ENV vars that can be used for customizing what and how to build:
GOARCH=amd64- Architecture run condiner on buildGOARM=7- ARM architecture version - 7 for RasperryPi 3GOOS=linux- OS systemARCHGO=arm- the target architecture, arm for RaspberryPi - EXT (386 amd64 arm ppc64 ppc64le)BEATS=filebeat,metricbeat- comma-separated list of beats to compileBEATS_VERSION=7.2.0- version to compile
This command will output the build result in the current folder:
docker run -v $(pwd):/build -e BEATS_VERSION=7.2.0 -e GOOS=linux -e ARCHGO=arm denizzzzp/beats4piext