aboutsummaryrefslogtreecommitdiffstats
path: root/ms/sdclistener
diff options
context:
space:
mode:
authorjananib <janani.b@huawei.com>2020-04-23 19:28:43 +0530
committerjananib <janani.b@huawei.com>2020-04-23 19:28:43 +0530
commitbe864c3d32ea9dfe88f0e121734abdc950401449 (patch)
treee2ad7a1bd926c01a73e73b33af357d26e255e201 /ms/sdclistener
parentf08bff64a1f54e9e8ff5920963247b1a0cfe535b (diff)
Making POD run as non-root
Non-root user addition Change-Id: Id110aebea3d3526aaf319d8994670644a7bab698 Issue-ID: CCSDK-2149 Signed-off-by: jananib <janani.b@huawei.com>
Diffstat (limited to 'ms/sdclistener')
-rwxr-xr-xms/sdclistener/distribution/src/main/docker/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/ms/sdclistener/distribution/src/main/docker/Dockerfile b/ms/sdclistener/distribution/src/main/docker/Dockerfile
index 5168dd9c2..e9ecb8d66 100755
--- a/ms/sdclistener/distribution/src/main/docker/Dockerfile
+++ b/ms/sdclistener/distribution/src/main/docker/Dockerfile
@@ -12,7 +12,8 @@ RUN tar -xzf /source.tar.gz -C /tmp \
&& rm -rf /source.tar.gz \
&& rm -rf /tmp/@project.build.finalName@
-RUN mkdir /opt/app/onap/cds-sdc-listener
+RUN mkdir -p /opt/app/onap/cds-sdc-listener
RUN chown onap:onap /opt -R
+
USER onap
ENTRYPOINT /startService.sh