The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
-## [1.5.2] - 18/03/2021
+## [1.6.0] - 25/03/2021
+### Changed
+- Switched Dockerfile to integration image (alpine-based)
+
+## [1.5.2] - 18/03/2021
- Implement singleton cache for events being processed
- Add JUnit tests
-## [1.5.1] - 03/02/2021
-
+## [1.5.1] - 03/02/2021
+### Added
- Add configuration number of threads and limit rate in files processing
+### Security
- Fix vulnerability - update undertow from 2.0.3.Final to 2.2.3.Final and commons.io from 2.6.0 to 2.8.0
============LICENSE_START=======================================================
Copyright (C) 2019-2020 Nordix Foundation.
Copyright (C) 2020-2021 Nokia. All rights reserved.
+ Copyright (C) 2021 Samsung Electronics. 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.
<groupId>org.onap.dcaegen2.services</groupId>
<artifactId>pm-mapper</artifactId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.6.0-SNAPSHOT</version>
<name>dcaegen2-services-pm-mapper</name>
#
# ============LICENSE_START=======================================================
# Copyright (C) 2019-2020 Nordix Foundation.
+# Copyright (C) 2021 Samsung Electronics.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
#
-FROM openjdk:11.0.7-jre-slim
+FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0
WORKDIR /opt/app/pm-mapper
-RUN apt-get update && \
- apt-get install --no-install-recommends -y curl nano && \
- apt-get clean && \
- rm -rf /var/lib/apt/lists/*
+ARG user=pm-mapper
+ARG group=pm-mapper
-RUN mkdir -p /var/log/ONAP
+USER root
+RUN apk add --no-cache curl && \
+ mkdir -p /var/log/ONAP && \
+ addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user && \
+ chmod u=rwx /var/log/ONAP && \
+ chown -R $user:$group /opt/app/pm-mapper /var/log/ONAP
-RUN adduser pm-mapper; \
- chmod a+rwx /var/log/ONAP; \
- chown -R pm-mapper /opt/app/pm-mapper
-
-USER pm-mapper
+USER $user
COPY ${project.build.directory}/${ext.dep.dir.path}/ ${ext.dep.dir.path}/
-COPY ${project.build.directory}/${JAR} .
+COPY --chown=$user:$group ${project.build.directory}/${JAR} .
COPY ${project.build.directory}/classes/schemas ./etc/schemas/
COPY ${project.build.directory}/classes/templates ./etc/templates/
-COPY --chown=pm-mapper ${project.build.directory}/classes/logback.xml ./etc/logback.xml
+COPY --chown=$user:$group ${project.build.directory}/classes/logback.xml ./etc/logback.xml
LABEL git.branch="${git.branch}" \
git.commit.user.name="${git.commit.user.name}"
-ENTRYPOINT ["/usr/local/openjdk-11/bin/java", "-jar", "${project.artifactId}-${project.version}.jar"]
+ENTRYPOINT ["java", "-jar", "${project.artifactId}-${project.version}.jar"]
ARG JAR