# Kibana docker building from GitHub source

**URL:** <https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863>\
**Category:** Kibana\
**Created:** [January 3, 2018, 2:29am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863 "2018-01-03T02:29:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.akash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john.akash/32/18707_2.png) [@john.akash](https://discuss.elastic.co/u/john.akash)\
**Post date:** [January 3, 2018, 2:29am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/1 "2018-01-03T02:29:19Z")

</div>

Hi Team,

We are looking for building a Kibana docker image from [GitHub](https://github.com/elastic/kibana/tree/v5.6.1). Version is a dependency for us because we are using ES 5.6.1.

Could you please let us know how can we build the image from source code provided?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [January 3, 2018, 9:42pm UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/2 "2018-01-03T21:42:13Z")

</div>

Hi @john.akash,

would the official docker image work for you?

> **[elastic/kibana-docker](https://github.com/elastic/kibana-docker)**
>
> kibana-docker - Official Kibana Docker image

  
[https://www.docker.elastic.co/](https://www.docker.elastic.co/)

---

<div class="post-metadata">

**Author:** ![john.akash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john.akash/32/18707_2.png) [@john.akash](https://discuss.elastic.co/u/john.akash)\
**Post date:** [January 4, 2018, 3:06am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/3 "2018-01-04T03:06:46Z")

</div>

@thomasneirynck, unfortunately no. We would like to make couple of changes to use from our end like,

- Remove Dev Tools, Timelion, Management etc from Kibana
- Add some custom icons
- Make use of kibana without Xpack

That is why we are planning to make use of github code.

Could you please let us know how can we achieve this?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [January 4, 2018, 3:51am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/4 "2018-01-04T03:51:05Z")

</div>

Hi @john.akash,  
1) Removal of Dev tools - you can only enable or disable the Dev tools using `console.enabled` set to either True or False. [https://www.elastic.co/guide/en/kibana/current/configuring-console.html](https://www.elastic.co/guide/en/kibana/current/configuring-console.html)

You can't disable Management/Timelion at the moment using the same trick, because it is not a separate plugin in Kibana.

> <https://github.com/elastic/kibana/issues/6545>

1. What do you mean by adding custom icons? Like Chnaging the Kibana logo for example? You can follow some discuss posts where they discuss the same:  
[Replace the kibana logo?](https://discuss.elastic.co/t/replace-the-kibana-logo/27547/20)

2. Kibana is built with X-Pack in the kibana -docker image. Until just the OSS image is made available on docker, you could probably do the following after x-pack installed:

RUN `bin/kibana-plugin remove x-pack`  
and set `XPACK_SECURITY_ENABLED`, `XPACK_GRAPH_ENABLED`, `XPACK_ML_ENABLED` and `XPACK_REPORTING_ENABLED` to`false`.

There is always the OSS Kibana you could use too.

@thomasneirynck: you could throw more light on this as well.

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![john.akash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john.akash/32/18707_2.png) [@john.akash](https://discuss.elastic.co/u/john.akash)\
**Post date:** [January 4, 2018, 4:19am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/5 "2018-01-04T04:19:51Z")

</div>

Hi @rashmi,

Thanks for your quick response

You can't disable Management/Timelion at the moment using the same trick, because it is not a separate plugin in Kibana.

- If we are doing the docker image building from GitHub code, is it possible to get this done?

What do you mean by adding custom icons? Like Chnaging the Kibana logo for example? You can follow some discuss posts where they discuss the same:.

- Yes, that is what we are looking for and will try that method and get back to you.

Kibana is built with X-Pack in the kibana -docker image. Until just the OSS image is made available on docker, you could probably do the following after x-pack installed:

- It got worked for me.

There is always the OSS Kibana you could use too.

- We were able to see 6.1.1 OSS image, could you please share 5.6.1 OSS image link?

Apart from that could you please share us the steps to build docker image from [GitHub code](https://github.com/elastic/kibana/tree/v5.6.1)?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 4, 2018, 5:20am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/6 "2018-01-04T05:20:45Z")

</div>

What you are asking is a completely custom Kibana build from source, removing some core components from Kibana that are not meant to be plug-and-play, and then all built into your own docker container.

That's not something we're comfy doing because it compromises too many things, so we can't help any further we're sorry to say.

If you'd like an OSS (ie no X-Pack) container of Kibana, then check out `docker.elastic.co/kibana/kibana-oss:6.1.1`, as mentioned [here](https://github.com/elastic/kibana-docker/issues/27#issuecomment-354311438).

---

<div class="post-metadata">

**Author:** ![john.akash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john.akash/32/18707_2.png) [@john.akash](https://discuss.elastic.co/u/john.akash)\
**Post date:** [January 4, 2018, 6:22am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/7 "2018-01-04T06:22:57Z")

</div>

Hi @warkolm,

Thanks for your quick response.

We are trying to grant Dashboard access only to the users, that is the reason why we are trying for customisation of Kibana.

Could you please let us know if we have an alternative for this use case, so that we can avoid this?

If I am going with `"docker.elastic.co/kibana/kibana-oss:6.1.1"`, it seems to be not working with our ES version **(5.6.0)**. The error which we are getting is

`This version of Kibana requires Elasticsearch v6.1.1 on all nodes. I found the following incompatible nodes in your cluster: v5.6.0 @ 100.65.226.154:9200 (100.65.226.154), v5.6.0 @ 100.65.226.170:9200 (100.65.226.170), v5.6.0 @ 100.65.226.134:9200 (100.65.226.134), v5.6.0 @ 100.65.226.141:9200 (100.65.226.141), v5.6.0 @ 100.65.226.143:9200 (100.65.226.143), v5.6.0 @ 100.65.226.163:9200 (100.65.226.163)","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}`

It would be great if you can share the docker image building steps as well from GitHub.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 4, 2018, 9:06am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/8 "2018-01-04T09:06:11Z")

</div>

> [@john.akash](#):
>
> Could you please let us know if we have an alternative for this use case, so that we can avoid this?

[Elastic (ELK) Stack Security | Elastic](https://www.elastic.co/products/x-pack/security) has all of that.

> [@john.akash](#):
>
> If I am going with "[docker.elastic.co/kibana/kibana-oss:6.1.1](http://docker.elastic.co/kibana/kibana-oss:6.1.1)", it seems to be not working with our ES version (5.6.0). The error which we are getting is

We didn't provide different containers for the 5.X releases sorry to say. But it should be easy to alter the container build file, instead of building from source.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 1, 2018, 9:06am UTC](https://discuss.elastic.co/t/kibana-docker-building-from-github-source/113863/9 "2018-02-01T09:06:20Z")

</div>

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