Change bbs-e-p baseOS img to integration- 67/118067/13 2.1.1
authorAlexander Mazuruk <a.mazuruk@samsung.com>
Thu, 18 Feb 2021 16:26:53 +0000 (17:26 +0100)
committerAlexander Mazuruk <a.mazuruk@samsung.com>
Thu, 22 Apr 2021 16:00:48 +0000 (18:00 +0200)
Benefits from switching over:
* minimal {java11,python} images maintained by integration team
* using currently "blessed by seccom" versions (:latest tag used)
* should limit spread of legal issues across layers
* integration images will be the first to have automated compliance
  documentation
* should limit spread of base layers (contributing to deployment
  footprint - more base layers = more to download, more to store etc...)

Issue-ID: INT-1864
Issue-ID: DCAEGEN2-2420
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
Change-Id: I48f6dda04e8a31bf175501e82aa776aba34aba72

components/bbs-event-processor/Dockerfile
components/bbs-event-processor/pom.xml
components/bbs-event-processor/version.properties

index a9e6a89..226d0b8 100644 (file)
@@ -1,24 +1,28 @@
-FROM openjdk:11-jre-slim
+FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0
 
 ARG PROJECT_BUILD_DIR_NAME
 ARG FINAL_JAR
 ARG DEPENDENCIES_DIR
 ARG DOCKER_ARTIFACT_DIR
+ARG user=bbs-ep
+ARG group=bbs-ep
+
 
 #Add a new user and group to allow container to be run as non-root
-RUN addgroup --system bbs-ep && adduser --system --ingroup bbs-ep bbs-ep
+USER root
+RUN addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user
 
 #Copy dependencies and executable jar
 WORKDIR ${DOCKER_ARTIFACT_DIR}
-COPY ${PROJECT_BUILD_DIR_NAME}/${FINAL_JAR} .
-COPY KeyStore.jks .
-COPY KeyStorePass.txt .
+COPY --chown=${user}:${group} ${PROJECT_BUILD_DIR_NAME}/${FINAL_JAR} .
+COPY --chown=${user}:${group} KeyStore.jks .
+COPY --chown=${user}:${group} KeyStorePass.txt .
 
 #Overcome Docker limitation to put ARG inside ENTRYPOINT
 RUN ln -s ${FINAL_JAR} bbs-ep.jar
-COPY ${PROJECT_BUILD_DIR_NAME}/${DEPENDENCIES_DIR} ./${DEPENDENCIES_DIR}
+COPY --chown=${user}:${group} ${PROJECT_BUILD_DIR_NAME}/${DEPENDENCIES_DIR} ./${DEPENDENCIES_DIR}
 
 EXPOSE 8100
 
-USER bbs-ep:bbs-ep
+USER ${user}
 ENTRYPOINT ["java", "-jar", "bbs-ep.jar"]
index eb47fcc..f37dce5 100644 (file)
@@ -12,7 +12,7 @@
 
     <groupId>org.onap.dcaegen2.services.components</groupId>
     <artifactId>bbs-event-processor</artifactId>
-    <version>2.1.0-SNAPSHOT</version>
+    <version>2.1.1-SNAPSHOT</version>
 
     <name>dcaegen2-services-bbs-event-processor</name>
     <description>BBS Re-Registration and CPE Authentication Handler</description>
index 4b2b9f1..3c5fba7 100644 (file)
@@ -1,5 +1,5 @@
 major=2
-minor=0
+minor=1
 patch=1
 base_version=${major}.${minor}.${patch}
 release_version=${base_version}