andig / beats4pi Goto Github PK
View Code? Open in Web Editor NEWDocker image to build elastic/beats for Raspberry Pi
Home Page: https://hub.docker.com/r/andig/beats4pi/
License: MIT License
Docker image to build elastic/beats for Raspberry Pi
Home Page: https://hub.docker.com/r/andig/beats4pi/
License: MIT License
I'm sorry, I have nothing more as output. Does someone have any idea why is error occures on the following command?
I'm running it on a raspberry pi 3.
Docker version is 18.09.0.
docker run -v $(pwd):/build -e BEATS_VERSION=6.1.1 andig/beats4pi
In the produced tarfile
the name of the directory contains x86 even in the package is built for arm7
A tarfile named ex. metricbeat-6.8.7-linux-arm7.tar.gz should contain a dir metricbeat-6.8.7-linux-arm7
Hey! after running the docker cmd posted, im not being able to find the binaries.
When specifying a exact version instead of a branch, still the branch is checked out.
In my opinion it would be better to check out the exact version if it is defined.
git checkout tag/v would do that.
Getting this. Maybe Go version?
docker run -v $(pwd):/build -e BEATS_VERSION=6.5.4 -e BEATS=filebeat -e GOARCH=arm -e GOARM=7 andig/beats4pi
Target version: 6.5.4
Target branch: 6.5
github.com/elastic/beats (download)
package github.com/elastic/beats: build constraints exclude all Go files in /go/src/github.com/elastic/beats
Switched to a new branch '6.5'
Branch '6.5' set up to track remote branch '6.5' from 'origin'.
Building: filebeat
go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2019-02-13T17:13:35Z -X github.com/elastic/beats/libbeat/version.commit=1cd37468431dc8597e4f8a3cb5c6dbf9f935feb0"
# github.com/elastic/beats/filebeat/input/file
input/file/state.go:76:10: undefined: strings.Builder
# github.com/elastic/beats/libbeat/common
../libbeat/common/string.go:36:10: undefined: strings.Builder
../libbeat/scripts/Makefile:100: recipe for target 'filebeat' failed
make: *** [filebeat] Error 2
cp: cannot stat 'filebeat': No such file or directory
I'm having trouble getting the 7.0.1 beats to compile using your image. It looks like it is installing mage, but then fails to find it.
> docker run -v $(pwd):/build -e BEATS_VERSION=7.0.1 -e GOARM=7 andig/beats4pi
Target version: 7.0.1
Target branch: 7.0
github.com/elastic/beats (download)
package github.com/elastic/beats: build constraints exclude all Go files in /go/src/github.com/elastic/beats
Switched to a new branch '7.0'
Branch 7.0 set up to track remote branch 7.0 from origin.
Installing mage v1.8.0 from vendor dir.
bash: mage: command not found
../dev-tools/make/mage.mk:9: recipe for target 'mage' failed
make: [mage] Error 127 (ignored)
cp: cannot stat 'filebeat': No such file or directory
2019-05-07 21:52:13 URL:https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.0.1-linux-x86.tar.gz [12899116/12899116] -> "filebeat-7.0.1-linux-x86.tar.gz" [1]
cp: cannot stat 'filebeat': No such file or directory
Installing mage v1.8.0 from vendor dir.
bash: mage: command not found
make: [mage] Error 127 (ignored)
../dev-tools/make/mage.mk:9: recipe for target 'mage' failed
cp: cannot stat 'metricbeat': No such file or directory
2019-05-07 21:52:18 URL:https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.0.1-linux-x86.tar.gz [25743741/25743741] -> "metricbeat-7.0.1-linux-x86.tar.gz" [1]
cp: cannot stat 'metricbeat': No such file or directory
I'll poke around a bit and see if this is just a path issue.
After placing only filebeat in the Dockerfile as ENV BEATS=filebeat, got as an artifact only the metricbeat
While the Dockerfile works for Beats v6.3 (great work!), it did not succeed for version >= 6.4. I am getting the following error:
Target version: 6.4.0
Target branch: 6.4
github.com/elastic/beats (download)
package github.com/elastic/beats: build constraints exclude all Go files in /go/src/github.com/elastic/beats
Switched to a new branch '6.4'
Branch '6.4' set up to track remote branch '6.4' from 'origin'.
Building: filebeat
go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2019-03-08T07:52:07Z -X github.com/elastic/beats/libbeat/version.commit=ba936a2f0d41ee64184a752adeba69a61ad44910"
# github.com/elastic/beats/filebeat/input/file
input/file/state.go:76:10: undefined: strings.Builder
make: *** [filebeat] Error 2
../libbeat/scripts/Makefile:99: recipe for target 'filebeat' failed
cp: cannot stat 'filebeat': No such file or directory
2019-03-08 07:52:34 URL:https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.4.0-linux-x86.tar.gz [10317706/10317706] -> "filebeat-6.4.0-linux-x86.tar.gz" [1]
cp: cannot stat 'filebeat': No such file or directory
Building: metricbeat
go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2019-03-08T07:52:41Z -X github.com/elastic/beats/libbeat/version.commit=ba936a2f0d41ee64184a752adeba69a61ad44910"
2019-03-08 07:53:22 URL:https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.4.0-linux-x86.tar.gz [18593535/18593535] -> "metricbeat-6.4.0-linux-x86.tar.gz" [1]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.