Changes to ZK config generation
Issue-ID: DMAAP-888
Change-Id: I30196b1e64e42f35307b6fb1275edd206069b349
Signed-off-by: sunil unnava <sunil.unnava@att.com>
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 765dc9a..9ce7b2f 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -1,6 +1,6 @@
FROM ubuntu:16.04
-ENV ZK_USER=zookeeper \
+ENV ZK_USER=root \
ZK_DATA_DIR=/var/lib/zookeeper/data \
ZK_DATA_LOG_DIR=/var/lib/zookeeper/log \
ZK_LOG_DIR=/var/log/zookeeper \
@@ -54,4 +54,7 @@
&& ln -s /opt/zookeeper/conf/ /usr/etc/zookeeper \
&& ln -s /opt/zookeeper/bin/* /usr/bin \
&& ln -s /opt/zookeeper/$ZK_DIST.jar /usr/share/zookeeper/ \
-&& ln -s /opt/zookeeper/lib/* /usr/share/zookeeper
\ No newline at end of file
+&& ln -s /opt/zookeeper/lib/* /usr/share/zookeeper
+
+chmod 700 /opt/zookeeper/bin/start-zookeeper.sh
+chmod 700 /var/lib/zookeeper/data/myid
\ No newline at end of file