aboutsummaryrefslogtreecommitdiffstats
path: root/dbc-client
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2019-04-12 18:59:42 +0000
committerdglFromAtt <dgl@research.att.com>2019-04-12 18:59:56 +0000
commit85e7c7e57c262e38a0b3e0a14e4ebf4b92f00a58 (patch)
treed70dbb91af617a2ff771c730279078aaefd3cc6f /dbc-client
parentd1eb116b93ba7a6f8dae7e34157a6e155104db9a (diff)
Run as non-root
Change-Id: I25f5bf778b9878648bd305fa0de965e4e7ec718c Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-1164
Diffstat (limited to 'dbc-client')
-rw-r--r--dbc-client/misc/dbc-client1
-rw-r--r--dbc-client/pom.xml2
-rw-r--r--dbc-client/src/main/resources/Dockerfile6
-rw-r--r--dbc-client/version.properties2
4 files changed, 8 insertions, 3 deletions
diff --git a/dbc-client/misc/dbc-client b/dbc-client/misc/dbc-client
index 1e839ec..c29ec86 100644
--- a/dbc-client/misc/dbc-client
+++ b/dbc-client/misc/dbc-client
@@ -25,7 +25,6 @@ umask 0022
TZ=GMT0
COMPONENT=dbc-client
APP_ROOT=${APP_ROOT:-/opt/app/$COMPONENT}
-USER=root
export TZ
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
export PATH
diff --git a/dbc-client/pom.xml b/dbc-client/pom.xml
index 83c1d05..384d6a8 100644
--- a/dbc-client/pom.xml
+++ b/dbc-client/pom.xml
@@ -270,7 +270,7 @@
<jettyVersion>9.4.12.RC2</jettyVersion>
<eelf.version>1.0.0</eelf.version>
<swagger.version>1.5.19</swagger.version>
- <artifact.version>1.0.6</artifact.version>
+ <artifact.version>1.0.7</artifact.version>
<!-- SONAR -->
<jacoco.version>0.7.7.201606060606</jacoco.version>
<sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
diff --git a/dbc-client/src/main/resources/Dockerfile b/dbc-client/src/main/resources/Dockerfile
index 9baa481..85f9426 100644
--- a/dbc-client/src/main/resources/Dockerfile
+++ b/dbc-client/src/main/resources/Dockerfile
@@ -46,4 +46,10 @@ RUN chmod +x /opt/app/dbc-client/bin/* && \
VOLUME /opt/app/dbc-client/log
+RUN addgroup -S -g 1001 onap \
+ && adduser -S -u 1000 dbc -G onap \
+ && chown -R dbc:onap /opt/
+
+USER dbc
+
ENTRYPOINT ["sh", "./bin/dbc-client" ]
diff --git a/dbc-client/version.properties b/dbc-client/version.properties
index dadd8a9..0607bbf 100644
--- a/dbc-client/version.properties
+++ b/dbc-client/version.properties
@@ -27,7 +27,7 @@
major=1
minor=0
-patch=6
+patch=7
base_version=${major}.${minor}.${patch}
# Release must be completed with git revision # in Jenkins