From a8e59fe8d77d5df48bcbe3899d3cefbf3f9fcd87 Mon Sep 17 00:00:00 2001 From: Kasperki Date: Fri, 28 Jan 2022 15:17:46 +0100 Subject: Switch VESCollector to Integration base image(onap/integration-java11:10.0.0) Change-Id: I0979707461994c1926d3809d6c68005e2e4f2624 Issue-ID: DCAEGEN2-2961 Signed-off-by: Pawel --- Changelog.md | 3 +++ pom.xml | 49 +++++++++++++++---------------------------------- src/docker/Dockerfile | 40 ++++++++++++++++++++++++++++++++++++++++ version.properties | 4 ++-- 4 files changed, 60 insertions(+), 36 deletions(-) create mode 100644 src/docker/Dockerfile diff --git a/Changelog.md b/Changelog.md index 8933f113..409bb6da 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.11.0] - 2022/01/28 + - [DCAEGEN2-2961] - Switch VESCollector to Integration base image(onap/integration-java11:10.0.0) + ## [1.10.3] - 2022/01/18 - [DCAEGEN2-3022] - Remediation for Log4Shell vulnerability (upgrade to 2.17.1) diff --git a/pom.xml b/pom.xml index 5723d88b..4649aa13 100644 --- a/pom.xml +++ b/pom.xml @@ -1,17 +1,19 @@ @@ -24,7 +26,7 @@ org.onap.dcaegen2.collectors.ves VESCollector - 1.10.3-SNAPSHOT + 1.11.0-SNAPSHOT dcaegen2-collectors-ves VESCollector @@ -187,34 +189,13 @@ ${project.version} latest - openjdk:11.0.11-jre-slim - vescollector - - /etc/host.aliases - - /opt/app/VESCollector . ${project.build.directory}/${project.artifactId}-${project.version} - - useradd -r -U vescollector - chown -R vescollector:vescollector /opt/app - mkdir /opt/app/VESCollector/logs - chown -R vescollector:vescollector /opt/app/VESCollector/logs - chown -R vescollector:vescollector /opt/app/VESCollector/etc - - chmod +x bin/*.sh - - - - - 8080 - 8443 - - bin/docker-entry.sh + src/docker diff --git a/src/docker/Dockerfile b/src/docker/Dockerfile new file mode 100644 index 00000000..3e2da432 --- /dev/null +++ b/src/docker/Dockerfile @@ -0,0 +1,40 @@ +# ============LICENSE_START======================================================= +# Copyright (c) 2020-2022 Nokia. 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# ============LICENSE_END========================================================= + +FROM nexus3.onap.org:10001/onap/integration-java11:10.0.0 + +ENV HOSTALIASES /etc/host.aliases +ARG user=vescollector +ARG group=vescollector +WORKDIR /opt/app/VESCollector + +ADD ./ ./ +USER root + +RUN addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user +RUN chown -R vescollector:vescollector /opt/app +RUN apk update && apk add procps && apk add less && apk add vim && apk add curl && apk add bash +RUN mkdir /opt/app/VESCollector/logs +RUN chown -R vescollector:vescollector /opt/app/VESCollector/logs +RUN chown -R vescollector:vescollector /opt/app/VESCollector/etc +RUN chmod +x bin/*.sh +USER $user + +EXPOSE 8080 8443 + +ENTRYPOINT bin/docker-entry.sh diff --git a/version.properties b/version.properties index 35a1494b..7c0c3f2c 100644 --- a/version.properties +++ b/version.properties @@ -1,6 +1,6 @@ major=1 -minor=10 -patch=3 +minor=11 +patch=0 base_version=${major}.${minor}.${patch} release_version=${base_version} snapshot_version=${base_version}-SNAPSHOT -- cgit 1.2.3-korg