Dockerfile for new beats


Hi :smiley:

I'm creating a custom beat thanks to your Developer Guide, and would like to package it into a Docker image.

I looked at the existing community beats, and found several ways of writing a Dockerfile to build an image for my beat. However, the quality of the resulting Docker images doesn't come close to what you have done for your official beats (e.g. metricbeat): size of image, internal directory structure, etc.

Therefore I'm wondering: this Dockerfile could be automatically generated for new beats, couldn't it? For instance, we could have some make Dockerfile command to generate the Dockerfile, which would build and package the beat binary in a clean Docker image.

What do you think? :thinking:


(Carlos Pérez Aradros) #2

We already have our Dockerfile images published, check repo, we use a Makefile for that, although it's not straight forward it's a good start to try to adapt your case.

Let us know if you find any issue while doing it!

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.