Start optimize process during docker build?

Hi,

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?

Thanks,
Bhavya

@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 https://github.com/elastic/kibana/issues/6057 and in the related pull request: https://github.com/elastic/kibana/pull/16302

Cheers,
Tiago

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