Skip to content

andig/beats4pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

andig/beats4pi

Docker image to build elastic/beats for Raspberry Pi

Customizing

The image has a couple of ENV vars that can be used for customizing what and how to build:

  • GOARCH=arm - the target architecture, arm for RaspberryPi
  • GOARM=7 - ARM architecture version - 7 for RasperryPi 3
  • BEATS=filebeat,metricbeat - comma-separated list of beats to compile
  • BEATS_VERSION=6.1.1 - version to compile

Building elastic beats

This command will output the build result in the current folder:

docker run -v $(pwd):/build -e BEATS_VERSION=6.0.1 andig/beats4pi

Other

To test the build script without re-downloading elastic/beats you can clone it once and then map the cloned folder into the images' GOPATH:

git clone https://github.com/elastic/beats
docker run -v $(pwd)/beats:/go/src/github.com/elastic/beats andig/beats4pi

See https://gist.github.com/andig/650915e02b18cfe38de6516686977bca for an approach how to manually build beats with the various configurations required natively on a RaspberryPi 3.

About

Docker image to build elastic/beats for Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •