31z4 / zookeeper-docker

Docker image packaging for Apache Zookeeper
MIT License
285 stars 243 forks source link

Set ZOOCFGDIR to ZOO_CONF_DIR in entrypoint #127

Closed nahsi closed 2 years ago

nahsi commented 2 years ago

When ZOO_CONF_DIR set to something other than /conf ZooKeeper fails to start:

ZooKeeper JMX enabled by default
Using config: /conf/zoo.cfg
grep: /conf/zoo.cfg: No such file or directory

As a workaround config directory can be specified twice with both ZOOCFGDIR (for zookeeper) and ZOO_CONF_DIR (for entrypoint).