diff --git a/.github/workflows/build-aggregator.yaml b/.github/workflows/build-aggregator.yaml index a3cd827..a9dbdf7 100644 --- a/.github/workflows/build-aggregator.yaml +++ b/.github/workflows/build-aggregator.yaml @@ -39,7 +39,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=spoud_kafka-cost-control + run: mvn -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=spoud_kafka-cost-control -Pfailsafe - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/aggregator/pom.xml b/aggregator/pom.xml index a1ec2a2..2d2d02f 100644 --- a/aggregator/pom.xml +++ b/aggregator/pom.xml @@ -9,7 +9,7 @@ UTF-8 UTF-8 - true + false quarkus-bom io.quarkus.platform 3.8.3 @@ -82,6 +82,10 @@ io.quarkus quarkus-smallrye-reactive-messaging-kafka + + io.quarkus + quarkus-container-image-docker + io.confluent kafka-avro-serializer diff --git a/aggregator/src/main/docker/Dockerfile.jvm b/aggregator/src/main/docker/Dockerfile.jvm index 9a7edd5..8748a1f 100644 --- a/aggregator/src/main/docker/Dockerfile.jvm +++ b/aggregator/src/main/docker/Dockerfile.jvm @@ -77,7 +77,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-17:1.18 +FROM registry.access.redhat.com/ubi8/openjdk-21:1.18 ENV LANGUAGE='en_US:en' diff --git a/aggregator/src/main/resources/application.yaml b/aggregator/src/main/resources/application.yaml index b2ce45c..6215f2b 100644 --- a/aggregator/src/main/resources/application.yaml +++ b/aggregator/src/main/resources/application.yaml @@ -83,4 +83,5 @@ quarkus: level: WARN "io.spoud.kcc": level: DEBUG - + container-image: + build: true diff --git a/aggregator/src/test/java/io/spoud/kcc/aggregator/stream/AppStartsTestIT.java b/aggregator/src/test/java/io/spoud/kcc/aggregator/stream/AppStartsTestIT.java new file mode 100644 index 0000000..750855d --- /dev/null +++ b/aggregator/src/test/java/io/spoud/kcc/aggregator/stream/AppStartsTestIT.java @@ -0,0 +1,12 @@ +package io.spoud.kcc.aggregator.stream; + +import io.quarkus.test.junit.QuarkusIntegrationTest; +import org.junit.jupiter.api.Test; + +@QuarkusIntegrationTest +class AppStartsTestIT { + @Test + void should_start_in_container() { + // no assertion, just make sure the application is able to launch inside the container + } +}