appbaseio / mirage

:art: GUI for simplifying Elasticsearch Query DSL
http://opensource.appbase.io/mirage
Other
2.21k stars 125 forks source link

Official Docker #23

Closed jalberto closed 7 years ago

jalberto commented 7 years ago

Will be great to have an official docker image for mirage, eg:

https://github.com/lmenezes/elasticsearch-kopf/tree/master/docker

siddharthlatest commented 7 years ago

@jalberto That's a good suggestion.

hkulekci commented 7 years ago

I can create a Dockerfile and docker-compose.yml file for the project.

Analect commented 7 years ago

@siddharthlatest Can I ask, is this dockerized version intended to be an alternative to installing it as a plugin? As per #35, I was having trouble installing it on v5 of ES.

@hkulekci I can see the Dockerfile, as part of the CMD uses --host=0.0.0.0 .. am I right in understanding that this should point to the host where ES is running? Does it need to be running on the same machine as this container? Do you tend to run up this container as part of a larger docker-compose file that includes ES containers too ... and do any form of linkage or ensure they are on the same network?

Also, is it possible to use your approach to containerize appbaseio/dejavu too?

Thanks.

hkulekci commented 7 years ago

@Analect --host parameter doesn't mention ES host. It actually mentions node server ip address. By default, it points to your containers localhost. If you want to change, you can set. For development environment, it is not necessary. Also, I think, you will use your dist folder for production, not your node server or npm environment.

On the other hand, Mirage provide a interface to set a host address from mirage interface(no need any configuration). For this reason, your mirage interface can work if you are in same network with your elasticsearch cluster.

Analect commented 7 years ago

Thanks @hkulekci Just a quick follow-up ... have you tried to containerize dejavu in the same way. Do you see any obstacles to taking the same approach as you've done in here?

hkulekci commented 7 years ago

please check the pr for dejavu https://github.com/appbaseio/dejavu/pull/49 @Analect

Analect commented 7 years ago

Thanks alot @hkulekci

siddharthlatest commented 7 years ago

Thanks @hkulekci for the PR. Official images are now available at https://hub.docker.com/r/appbaseio/mirage/ and https://hub.docker.com/r/appbaseio/dejavu/!