aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2019-08-18 12:19:17 +0000
committerVijay Venkatesh Kumar <vv770d@att.com>2019-08-18 12:20:21 +0000
commitae83904e17e5e785c4945b15f824df8251a91b8a (patch)
tree9bb00aa606804851d366135a1568a32ef0f8a28f /pom.xml
parentc51ff9c24f0a71c7341cff15239450c9065e8263 (diff)
fix user/permission
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>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml7
1 files changed, 3 insertions, 4 deletions
diff --git a/pom.xml b/pom.xml
index a97b4124..25f51cee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,7 @@
<releases.path>content/repositories/releases/</releases.path>
<site.path>content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}</site.path>
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
+ <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
</properties>
<build>
<pluginManagement>
@@ -150,10 +151,6 @@
</imageTags>
<baseImage>openjdk:8-jre-slim</baseImage>
<user>vescollector</user>
- <runs>
- <run>addgroup -S vescollector</run>
- <run>adduser -S -G vescollector vescollector</run>
- </runs>
<env>
<HOSTALIASES>/etc/host.aliases</HOSTALIASES>
</env>
@@ -165,6 +162,8 @@
</resource>
</resources>
<runs>
+ <run>useradd -r -U vescollector</run>
+ <run>chown -R vescollector:vescollector /opt/app</run>
<!-- Maven is loosing file permissions during artifacts copy -->
<run>chmod +x bin/*.sh</run>
<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>