Start optimize process during docker build?


is here a way to start optimizing step during the build explicitly and stop kibana directly after it is done?

I want to prepare a custom image of kibana docker container. Due to some config changes kibana is runnning the optimizer task on first start of container. That increases the startup time of first run.
So I want to move this step to image creation process. And kibana should terminate afterwards just like when installing plugins. But not all installations of kibana are using plugins, so I need another way.

Thanks, Andreas

@tiagocosta can we please get some help here?


@asp we did some changes above that matter that were introduced on 6.5.0.
Basically you just need to call ./bin/kibana --optimize when building the docker image to start an optimization during the image creation.

You can found more info about that matter in the original issue and in the related pull request:


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