qnib / docker-zkui

Zookeeper UI
GNU General Public License v2.0
13 stars 11 forks source link

spin up zkui without zookeeper and consul #3

Closed imrangit closed 8 years ago

imrangit commented 8 years ago

I would just like to spin up zkui and then have it point to the remote zookeeper server. How can i do that?

ChristianKniep commented 8 years ago

Hey there, just provide a list of ZK nodes with ZKUI_ZK_SERVER (e.g. ZKUI_ZK_SERVER=zookeeperhost:2181) and it will point there. The magic is in the consul-template: https://github.com/qnib/docker-zkui/blob/master/etc/consul-templates/zkui.conf.ctmpl#L3-L4

imrangit commented 8 years ago

HI Christian,

So this is what I have done. I build the image from your Dockerfile and this is how I am running it:

sudo docker run -d -p 9010:9010 -e SUPERVISOR_AUTOSTART_SRV=zkui -e ZKUI_ZK_SERVER=myzkinstance:2181 zkui

After that, it doesn’t respond on 9010 port. I only care about zkui, and i dont want to spin up consul or zookeepers in the container.

-Imran

ChristianKniep commented 8 years ago

You do not need to specify SUPERVISOR_AUTOSTART_SRV, it should work out of the box. I'm on the run, so I won't have time to check it myself. Please try -p 9090:9090, since that should be the port.

Reply if you can not make it work, I will have a look tomorow and update the README to provide more details on that.

Thanks for reporting, I appreciate it!

ChristianKniep commented 8 years ago

Ah, maybe you are right with the AUTOSTART thingy... I'll have a look tomorrow...

imrangit commented 8 years ago

Hi Christian,

Any update to this?

-Imran

ChristianKniep commented 8 years ago

Hey @imrangit, sorry I am a bit swamped here. I will check it out as fast as I can.

ChristianKniep commented 8 years ago

Here we go, I checked the image and beefed it up a little. Please visit the README for instructions, it should work as expected now.

Cheers and thanks for poking me on this, I really appreciate it!