summaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorsunil unnava <sunil.unnava@att.com>2018-11-26 09:37:28 -0500
committersunil unnava <sunil.unnava@att.com>2018-11-26 09:37:46 -0500
commit94d2769393df3968b82657f07ae88854c0a74809 (patch)
tree64f0855bff21c5ff0ddaea1853ebbba579004f2a /src/main/docker/Dockerfile
parenta5dca829e727f1b283926df41a54d3c4cec6d039 (diff)
Update Dockerfile
Issue-ID: DMAAP-888 Change-Id: Icb1aa6e33daa2813ed6d01843a4d32ce3f276d6a Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker/Dockerfile')
-rw-r--r--src/main/docker/Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 9e0b1ea..6ca395b 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -42,13 +42,12 @@ RUN set -x \
# Copy configuration generator script to bin
COPY scripts /opt/zookeeper/bin/
-RUN chown -R $ZK_USER:$ZK_USER /opt/zookeeper/bin/start-zookeeper.sh
-RUN chown -R $ZK_USER:$ZK_USER /opt/zookeeper/bin/zookeeper-metrics.sh
-RUN chown -R $ZK_USER:$ZK_USER /opt/zookeeper/bin/zookeeper-ready.sh
+
# Create a user for the zookeeper process and configure file system ownership
# for necessary directories and symlink the distribution as a user executable
RUN set -x \
+ && useradd $ZK_USER \
&& [ `id -u $ZK_USER` -eq 1000 ] \
&& [ `id -g $ZK_USER` -eq 1000 ] \
&& mkdir -p $ZK_DATA_DIR $ZK_DATA_LOG_DIR $ZK_LOG_DIR /usr/share/zookeeper /tmp/zookeeper /usr/etc/ \