Skip to content

Commit

Permalink
Release/march 2024 hotfix 1.8.3 (#1436)
Browse files Browse the repository at this point in the history
* message-lib fix incident creation wrong headers (#1435)

* dockerfiles use ubi9, fix startup, rm default expose (#1426)
  • Loading branch information
simonhir authored Mar 11, 2024
1 parent 601defe commit 652a545
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 70 deletions.
6 changes: 1 addition & 5 deletions digiwf-connector/digiwf-camunda-connector-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
6 changes: 1 addition & 5 deletions digiwf-engine/digiwf-engine-rest-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
6 changes: 1 addition & 5 deletions digiwf-engine/digiwf-engine-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
6 changes: 1 addition & 5 deletions digiwf-gateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public class ErrorApiImpl implements ErrorApi {
* @return
*/
@Override
public boolean handleIncident(final Map<String, Object> originMessageHeaders, final String errorMessage) {
public boolean handleIncident(final Map<String, Object> originMessageHeaders, final String errorMessage) {
final Map<String, Object> headers = Map.of(
TYPE, this.incidentDestination,
TYPE, originMessageHeaders.get(TYPE),
DIGIWF_PROCESS_INSTANCE_ID, originMessageHeaders.get(DIGIWF_PROCESS_INSTANCE_ID),
DIGIWF_INTEGRATION_NAME, originMessageHeaders.get(DIGIWF_INTEGRATION_NAME)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class ErrorApiImplTest {
private final String incidentDestination = "incidentMessageDestination";
private final String bpmnErrorDestination = "bpmnErrorMessageDestination";
private final String integrationName = "exampleIntegration";
private final String typeName = "exampleType";
private final Map<String, Object> messageHeaders = Map.of(DIGIWF_PROCESS_INSTANCE_ID, this.processInstanceId,
DIGIWF_INTEGRATION_NAME, this.integrationName);
DIGIWF_INTEGRATION_NAME, this.integrationName, TYPE, this.typeName);


@BeforeEach
Expand All @@ -47,7 +48,7 @@ void setUp() {
void testHandleIncident() {
final boolean success = this.errorApi.handleIncident(messageHeaders, "someErrorMessage");
assertThat(success).isTrue();
this.verifyIncidentMessageApiCall("someErrorMessage", this.incidentDestination, this.integrationName, this.incidentDestination);
this.verifyIncidentMessageApiCall("someErrorMessage", this.typeName, this.integrationName, this.incidentDestination);
}

@Test
Expand Down Expand Up @@ -79,7 +80,7 @@ void testHandleIncidentWithException() {
final IncidentError incidentError = new IncidentError("someErrorMessage");
final boolean success = this.errorApi.handleIncident(this.messageHeaders, incidentError);
assertThat(success).isTrue();
this.verifyIncidentMessageApiCall("someErrorMessage", this.incidentDestination, this.integrationName, this.incidentDestination);
this.verifyIncidentMessageApiCall("someErrorMessage", this.typeName, this.integrationName, this.incidentDestination);
}

@Test
Expand Down
6 changes: 1 addition & 5 deletions digiwf-task/digiwf-tasklist-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM registry.access.redhat.com/ubi8/openjdk-17:latest

EXPOSE 8080
FROM registry.access.redhat.com/ubi9/openjdk-17:latest

COPY target/*.jar /deployments/spring-boot-application.jar

CMD "java" ${JAVA_OPTIONS} "-jar" "/deployments/spring-boot-application.jar"

0 comments on commit 652a545

Please sign in to comment.