summaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
authorsunil.unnava <sunil.unnava@att.com>2019-04-09 02:19:23 -0400
committersunil unnava <su622b@att.com>2019-04-09 19:11:35 +0000
commit5d5e572ec3c0354d326c6c03f80cd0b6fc2216b8 (patch)
tree9cf5592692d114349ad8dad292fca5139600d12a /src/main/docker
parentfceaf3ddac03afb759fc18c41f284216f370aa0b (diff)
add userid to user
Issue-ID: DMAAP-1040 Change-Id: Iea1fffb24a4e48cf10eb8bcac081f9751114eebf Signed-off-by: sunil.unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/Dockerfile8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index c9168c2..568b10d 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -41,10 +41,8 @@ RUN chmod a+x /usr/bin/start-kafka.sh && \
# Use "exec" form so that it runs as PID 1 (useful for graceful shutdown)
CMD ["start-kafkaOrMirrorMaker.sh"]
-RUN addgroup -S onap \
- && adduser -S mrkafka -G onap \
- && chown -R mrkafka:onap /opt/kafka/ /opt/logs/ /opt/etc/ /kafka/ /usr/bin/ /tmp/
+RUN addgroup -S -g 1000 mrkafka \
+ && adduser -S -u 1000 mrkafka mrkafka \
+ && chown -R mrkafka:mrkafka /opt/kafka/ /opt/logs/ /opt/etc/ /kafka/ /usr/bin/ /tmp/
USER mrkafka
-
-