Andreas Tsagkaropoulos ac4d0744b5 Major code refactoring
Changes in the naming of the topics used for the communication of the component
Better information propagation during the creation of a Broker subscriber processing function
Better handling of upper and lower metric (attribute) bounds
Acquisition of broker credential information from the user
Improvement of number handling within metrics (allow a metric to have integer or real values)
Improvement of the logic related to the initiation of a new SLO violation detection engine
Transferral of generic topic subscriptions (application-independent logic) to the code of the Director Subcomponent
Improvements to the CustomDataPublisher
Better handling of paths for the properties files necessary for the operation of the component
Improvement on the handling of infinity

Change-Id: I94a6fdb4612de192c24511445f1236cdce94b366
2024-01-29 13:36:03 +02:00

24 lines
1.4 KiB
Docker

# Copyright (c) 2023 Institute of Communication and Computer Systems
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# Build stage
#
FROM docker.io/library/maven:3.9.2-eclipse-temurin-17 AS build
COPY src /home/app/src
COPY pom.xml /home/app
RUN mvn -f /home/app/pom.xml -DfailIfNoTests=false -Dtest=!UnboundedMonitoringAttributeTests,!ConnectivityTests clean package
FROM docker.io/library/eclipse-temurin:17
RUN mkdir -p /home/src/main/resources/
COPY src/main/resources/config/eu.nebulous.slo_violation_detector.properties /home/slo-violation-detector/src/main/resources/config/eu.nebulous.slo_violation_detector.properties
COPY src/main/resources/config/eu.melodic.event.brokerclient.properties /home/slo-violation-detector/src/main/resources/config/eu.melodic.event.brokerclient.properties
COPY --from=build /home/app/target/SLO-Violation-Detector-4.0-SNAPSHOT.jar /home/SLOSeverityCalculator-4.0-SNAPSHOT.jar
WORKDIR /home
ENV LOG_FILE /home/slo_violation_detector.log
#CMD ["/bin/sh","-c","java -jar SLOSeverityCalculator-4.0-SNAPSHOT.jar > $LOG_FILE 2>&1"]
#CMD ["/bin/sh","-c","java -jar SLOSeverityCalculator-4.0-SNAPSHOT.jar 2>&1 | tee $LOG_FILE"]
CMD ["/bin/sh","-c","java -jar SLOSeverityCalculator-4.0-SNAPSHOT.jar 2>&1"]