From da769607edb894cbd9e473caed7312156be2a825 Mon Sep 17 00:00:00 2001 From: "mukesh.paliwal1@huawei.com" Date: Wed, 16 Sep 2020 14:54:42 +0530 Subject: Docker container is not up invalid user Issue-ID: DCAEGEN2-2281 Signed-off-by: mukesh.paliwal1@huawei.com Change-Id: I310f07b172e0442cdd316ac91fcd58213a2a8778 --- pom.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2479d11..6c525ff 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ limitations under the License. UTF-8 11 onap/org.onap.dcaegen2.collectors.restconfcollector - restconf + restconfcollector /opt/app/restconfcollector true @@ -204,6 +204,7 @@ limitations under the License. latest openjdk:11-jre-slim + ${docker.user.name} /etc/host.aliases @@ -215,7 +216,9 @@ limitations under the License. - adduser -h ${docker.user.dir} -D ${docker.user.name}; chown -R ${docker.user.name}: ${docker.user.dir}; chmod +x ${docker.user.dir}/bin/*.sh + useradd -r -U ${docker.user.name} + chown -R ${docker.user.name}:${docker.user.name} ${docker.user.dir} + chmod +x ${docker.user.dir}/bin/*.sh ${docker.user.dir}/bin/docker_entry.sh -- cgit 1.2.3-korg