diff options
author | sunil.unnava <sunil.unnava@att.com> | 2019-04-08 19:44:29 -0400 |
---|---|---|
committer | sunil unnava <su622b@att.com> | 2019-04-08 23:46:47 +0000 |
commit | fceaf3ddac03afb759fc18c41f284216f370aa0b (patch) | |
tree | 07d57fa4c16098b333703eac2424e98e7ccdff51 /src/main/docker | |
parent | 6a5a136450f8ba6eb995428672a14241019f5927 (diff) |
run as non root user
Issue-ID: DMAAP-1040
Change-Id: I326caf078224e0aa94b7f9deafdea743d26c06e4
Signed-off-by: sunil.unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/docker')
-rw-r--r-- | src/main/docker/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 2ac2f3d..c9168c2 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -41,8 +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 onap \ - && adduser mrkafka -G onap \ +RUN addgroup -S onap \ + && adduser -S mrkafka -G onap \ && chown -R mrkafka:onap /opt/kafka/ /opt/logs/ /opt/etc/ /kafka/ /usr/bin/ /tmp/ USER mrkafka |