GithubHelp home page GithubHelp logo

andig / beats4pi Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 19.0 6 KB

Docker image to build elastic/beats for Raspberry Pi

Home Page: https://hub.docker.com/r/andig/beats4pi/

License: MIT License

Shell 78.18% Dockerfile 21.82%

beats4pi's People

Contributors

andig avatar emes avatar hingston avatar saraedum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

beats4pi's Issues

Wrong name in the tar file.

In the produced tarfile
the name of the directory contains x86 even in the package is built for arm7

Expected result

A tarfile named ex. metricbeat-6.8.7-linux-arm7.tar.gz should contain a dir metricbeat-6.8.7-linux-arm7

Checkout exact version instead of branch

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.

undefined: strings.Builder

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

7.0.1 fails to build

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.

Beats from v6.4 do not compile

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.