Skip to content

Commit

Permalink
Optimize kibana caching and bundles at build time
Browse files Browse the repository at this point in the history
Previously when spinning kibana docker container a log message warned
of kibana having to optimize and caching bundles, as such:

{
 "type":"log",
 "@timestamp":"2018-10-18T15:31:44Z",
 "tags":["info","optimize"],
 "pid":1,
 "message":"Optimizing and caching bundles...This may take few minutes"
}

This would cause kibana to be unreachable for few minutes when starting
up the analytics dashboard.

This fix moves the optimization at image building time rather than at
run time, as suggested by:

elastic/kibana#6057 (comment)

Feature: Issue 9870

Change-Id: I837d612c988aeebe2d5911003a82cd43e65c6d4b
  • Loading branch information
syntonyze committed Oct 19, 2018
1 parent ce1de58 commit b96b211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kibana/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FROM docker.elastic.co/kibana/kibana:5.5.2
RUN kibana-plugin remove x-pack
RUN /usr/local/bin/kibana-docker 2>&1 | grep -m 1 "Optimization of .* complete"

0 comments on commit b96b211

Please sign in to comment.