Created
September 22, 2018 22:53
-
-
Save mnaser/c4943c070df3b4c3c21866cf0158f7a1 to your computer and use it in GitHub Desktop.
Script to build ARM64 beats (must run on x86)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Can ou update this gist with working instructions to build beats for arm64?