diff options
author | 2020-04-23 19:28:43 +0530 | |
---|---|---|
committer | 2020-04-28 14:03:43 +0000 | |
commit | e2d379be0f177196553da53c78561433abb28ef5 (patch) | |
tree | ec5663ba182544a77d6b8faad7a6c7f42ebc408c /ms/sdclistener/distribution | |
parent | 263b5c1cc1de8c9429d25e6b2aa23159f8c7ee9e (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>
(cherry picked from commit be864c3d32ea9dfe88f0e121734abdc950401449)
Diffstat (limited to 'ms/sdclistener/distribution')
-rwxr-xr-x | ms/sdclistener/distribution/src/main/docker/Dockerfile | 3 |
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 |