From 69d6b8580efc61f4c4423d0039a0a28206b09b85 Mon Sep 17 00:00:00 2001 From: s00370346 Date: Wed, 19 Jun 2019 17:54:31 +0530 Subject: Issue-ID: DCAEGEN2-1561 RESTConf container support for non-root Signed-off-by: s00370346 Change-Id: I7c3158dc51bf5c36e9dd74f12de2513f7d606d3a --- pom.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 7f19d09..911a672 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,8 @@ limitations under the License. UTF-8 8 onap/org.onap.dcaegen2.collectors.restconfcollector + restconf + /opt/app/restconfcollector true @@ -199,7 +201,7 @@ limitations under the License. /etc/host.aliases - /opt/app/restconfcollector + ${docker.user.dir} . @@ -207,13 +209,14 @@ limitations under the License. - chmod +x /opt/app/restconfcollector/bin/*.sh + adduser -h ${docker.user.dir} -D ${docker.user.name}; chown -R ${docker.user.name}: ${docker.user.dir}; chmod +x ${docker.user.dir}/bin/*.sh - /opt/app/restconfcollector/bin/docker_entry.sh + ${docker.user.dir}/bin/docker_entry.sh 8080 8687 + ${docker.user.name} -- cgit 1.2.3-korg