Sign inSign up

tschaffter/beats4pi

By tschaffter

Updated almost 5 years ago

Build elastic/beats for Raspberry Pi

Image
0

1.1K

tschaffter/beats4pi repository overview

Build elastic/beats for Raspberry Pi

GitHub Release GitHub CI GitHub License Docker Pulls

Introduction

This repository provides a Docker image to cross compile elastic/beats components for Raspberry Pi (ARMv7 architecture).

Requirements

Usage

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=7.14.0 - version to compile
Building the image
docker build -t tschaffter/beats4pi:latest .
Building elastic beats

These commands will clone the repository of elastic/beats, build the selected beats components and output the build result in the current folder:

git clone https://github.com/elastic/beats.git
docker run --rm \
    -v $(pwd)/beats:/go/src/github.com/elastic/beats \
    -v $(pwd):/build \
    -e BEATS_VERSION=7.14.0 \
    tschaffter/beats4pi:latest

Acknowledgments

This project has been forked from andig/beats4pi.

Tag summary

Content type

Image

Digest

Size

330 MB

Last updated

about 5 years ago

docker pull tschaffter/beats4pi