Skip to content

Instantly share code, notes, and snippets.

@mnaser
Created September 22, 2018 22:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mnaser/c4943c070df3b4c3c21866cf0158f7a1 to your computer and use it in GitHub Desktop.
Save mnaser/c4943c070df3b4c3c21866cf0158f7a1 to your computer and use it in GitHub Desktop.
Script to build ARM64 beats (must run on x86)
#!/bin/bash
sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get -y install docker.io libpcap-dev python-virtualenv golang-1.10-go git
sudo usermod -aG docker $USER
# logout and login for groups to update
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:/usr/lib/go-1.10/bin:$PATH"
go get github.com/elastic/beats
cd ~/go/src/github.com/elastic/beats
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
BEATS='auditbeat filebeat heartbeat metricbeat' PLATFORMS='+linux/arm64 !defaults' make release
# packetbeat doesn't compile with "fatal error: pcap.h: No such file or directory"
@MrYoda
Copy link

MrYoda commented Oct 5, 2018

Hi! Can ou update this gist with working instructions to build beats for arm64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment