Update to Java 11 50/110450/4
authorJoeOLeary <joseph.o.leary@est.tech>
Wed, 22 Jul 2020 13:08:40 +0000 (14:08 +0100)
committerJoeOLeary <joseph.o.leary@est.tech>
Thu, 23 Jul 2020 15:59:59 +0000 (16:59 +0100)
minor version bump to 1.4.0

Issue-ID: DCAEGEN2-1691
Signed-off-by: JoeOLeary <joseph.o.leary@est.tech>
Change-Id: Iaf9e8fdcf469fe79c63e8e3868b18168a60a7f2c

datafile-app-server/pom.xml
datafile-app-server/src/main/docker/Dockerfile [changed mode: 0644->0755]
pom.xml
version.properties

index 5f9474a..fdec599 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~ ============LICENSE_START=======================================================
-  ~ Copyright (C) 2018 NOKIA Intellectual Property, 2018-2019 Nordix Foundation. All rights reserved.
+  ~ Copyright (C) 2018 NOKIA Intellectual Property, 2018-2020 Nordix Foundation. All rights reserved.
   ~ Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
   ~ ================================================================================ 
   ~ Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,7 +25,7 @@
   <parent>
     <groupId>org.onap.dcaegen2.collectors</groupId>
     <artifactId>datafile</artifactId>
-    <version>1.3.0-SNAPSHOT</version>
+    <version>1.4.0-SNAPSHOT</version>
   </parent>
 
   <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
old mode 100644 (file)
new mode 100755 (executable)
index c3e5f07..0763e2b
@@ -17,7 +17,7 @@
 # SPDX-License-Identifier: Apache-2.0
 # ============LICENSE_END=========================================================
 #
-FROM openjdk:8-jre-alpine
+FROM openjdk:11.0.6-jre-slim
 
 WORKDIR /opt/app/datafile
 RUN mkdir -p /var/log/ONAP
@@ -28,10 +28,10 @@ ADD /config/application.yaml /opt/app/datafile/config/
 
 EXPOSE 8100 8433
 
-RUN addgroup -S onap && adduser -S datafile -G onap
+RUN groupadd -r onap && useradd -ms /bin/bash datafile -g onap
 RUN chown -R datafile:onap /var/log/ONAP
 RUN chmod -R 777 /opt/app/datafile/config/
 
 USER datafile
 
-ENTRYPOINT ["/usr/bin/java", "-jar", "/opt/app/datafile/datafile-app-server.jar"]
+ENTRYPOINT ["/usr/local/openjdk-11/bin/java", "-jar", "/opt/app/datafile/datafile-app-server.jar"]
diff --git a/pom.xml b/pom.xml
index d233593..407f8af 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~ ============LICENSE_START=====================================================================
-  ~ Copyright (C) 2018 NOKIA Intellectual Property, 2018-2019 Nordix Foundation. All rights reserved.
+  ~ Copyright (C) 2018 NOKIA Intellectual Property, 2018-2020 Nordix Foundation. All rights reserved.
   ~ ==============================================================================================
   ~ Licensed under the Apache License, Version 2.0 (the "License");
   ~ you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@
 
   <groupId>org.onap.dcaegen2.collectors</groupId>
   <artifactId>datafile</artifactId>
-  <version>1.3.0-SNAPSHOT</version>
+  <version>1.4.0-SNAPSHOT</version>
 
   <name>dcaegen2-collectors.datafile</name>
   <description>datafile collector</description>
@@ -44,7 +44,7 @@
   </licenses>
 
   <properties>
-    <java.version>8</java.version>
+    <java.version>11</java.version>
     <sdk.version>1.1.6</sdk.version>
     <apache.httpcomponents.version>4.1.4</apache.httpcomponents.version>
     <apache.commons.version>3.6</apache.commons.version>
index f520c97..3db741f 100644 (file)
@@ -1,5 +1,5 @@
 major=1\r
-minor=3\r
+minor=4\r
 patch=0\r
 base_version=${major}.${minor}.${patch}\r
 release_version=${base_version}\r