Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary packages??? #23

Closed
mrkschan opened this issue Dec 11, 2015 · 8 comments
Closed

binary packages??? #23

mrkschan opened this issue Dec 11, 2015 · 8 comments
Labels
Milestone

Comments

@mrkschan
Copy link
Owner

No description provided.

@mrkschan mrkschan added the bug label Dec 11, 2015
@mrkschan mrkschan added this to the 1.0 milestone Dec 11, 2015
@sebastienbonami
Copy link

👍

@mrkschan
Copy link
Owner Author

I guess I need to modify https://github.com/elastic/beats-packer/blob/master/Makefile to pack this beat. Am I going to right direction? @ruflin?

@ruflin
Copy link

ruflin commented Jan 26, 2016

@mrkschan Yes. But we moved this repo also into the beats repo here: https://github.com/elastic/beats/tree/master/dev-tools/packer

Also have a look at elastic/beats#849

@mrkschan
Copy link
Owner Author

@ruflin I just find that there's a cross compile section in the libbeat/scripts/Makefile. Should I use that or should I use dev-tools/packer to make multi-platform binaries?

@ruflin
Copy link

ruflin commented Jan 28, 2016

I depends on what you need: Crosscompile will just generate the binariees, packer is able to generate .deb and .rpm packages.

@tsg
Copy link

tsg commented Jan 28, 2016

@mrkschan i'm hoping to find the time soon to improve the way dev-tools/packer can be used to build rpm/debs for all Beats. Currently you'd have to mock around quite a bit, but @cyrilleverrier apparently managed it :-).

If your beat doesn't require Cgo (and I'm pretty sure it doesn't) it might be easier to use the cosscompile Makefile target to build the binaries and then fpm directly to transform them in debs/rpms. You can have a look in packer for the fpm command line to use and the init scripts / unit files.

@cyrilleverrier
Copy link

@mrkschan I just duplicated dev-tools/packer into my own folder and modified the paths wherever needed. It works well now that @tsg pushed the updated docker images to cross compile the code.

@mrkschan
Copy link
Owner Author

I guess I would keep things simple first. make crosscompile is working great so far :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants