fix user/permission 39/93739/1
authorVijay Venkatesh Kumar <vv770d@att.com>
Sun, 18 Aug 2019 12:19:17 +0000 (12:19 +0000)
committerVijay Venkatesh Kumar <vv770d@att.com>
Sun, 18 Aug 2019 12:20:21 +0000 (12:20 +0000)
Change-Id: Id55c70fdf15658faebaaa7a191ae2b84347d29e3
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-1730
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index a97b412..25f51ce 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,7 @@
                <releases.path>content/repositories/releases/</releases.path>\r
                <site.path>content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}</site.path>\r
                <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>\r
+               <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>\r
        </properties>\r
        <build>\r
                <pluginManagement>\r
                                        </imageTags>\r
                                        <baseImage>openjdk:8-jre-slim</baseImage>\r
                                         <user>vescollector</user>\r
-                                        <runs>\r
-                                                <run>addgroup -S vescollector</run>\r
-                                                <run>adduser -S -G vescollector vescollector</run>\r
-                                        </runs>\r
                                        <env>\r
                                                <HOSTALIASES>/etc/host.aliases</HOSTALIASES>\r
                                        </env>\r
                                                </resource>\r
                                        </resources>\r
                                        <runs>\r
+                                                <run>useradd -r -U vescollector</run>\r
+                                                <run>chown -R vescollector:vescollector /opt/app</run>\r
                                                <!-- Maven is loosing file permissions during artifacts copy -->\r
                                                <run>chmod +x bin/*.sh</run>\r
                                                <run><![CDATA[apt-get update && apt-get install -y --no-install-recommends procps && apt-get install -y vim && apt-get install -y curl && apt-get clean all]]></run>\r