Skip to content

Commit a0577cf

Browse files
author
Dennis Labordus
authored
Merge pull request #98 from com-pas/develop
New release
2 parents c5e27e7 + 61cb602 commit a0577cf

File tree

10 files changed

+72
-22
lines changed

10 files changed

+72
-22
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ updates:
3333
versions: [ "[7.0,)" ]
3434
- dependency-name: org.glassfish:jakarta.el
3535
versions: [ "[4.0,)" ]
36+
37+
- package-ecosystem: "docker"
38+
directory: "/app/src/main/docker/"
39+
schedule:
40+
interval: "daily"
41+
open-pull-requests-limit: 5

.github/workflows/build-project.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v3
2525
- name: Set up Docker Buildx
2626
id: buildx
27-
uses: docker/setup-buildx-action@v1
27+
uses: docker/setup-buildx-action@v2
2828
- name: Cache Docker Register
2929
uses: actions/cache@v3
3030
with:
@@ -38,7 +38,7 @@ jobs:
3838
restore-keys: ${{ runner.os }}-m2
3939

4040
- name: Set up JDK 1.11
41-
uses: actions/setup-java@v3.2.0
41+
uses: actions/setup-java@v3.3.0
4242
with:
4343
distribution: 'zulu'
4444
java-version: '11'
@@ -48,9 +48,9 @@ jobs:
4848
with:
4949
output_file: custom_maven_settings.xml
5050
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
51-
- name: Build Native with Maven
51+
- name: Build with Maven (Pull Request)
5252
if: ${{ github.event_name == 'pull_request' }}
53-
run: ./mvnw -s custom_maven_settings.xml -B -Pnative clean verify
54-
- name: Build with Maven
53+
run: ./mvnw -s custom_maven_settings.xml -B -Pnative-image clean verify
54+
- name: Build with Maven (Push)
5555
if: ${{ github.event_name == 'push' }}
5656
run: ./mvnw -s custom_maven_settings.xml -B clean verify

.github/workflows/release-project.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Release Project
66

77
on:
88
release:
9-
types: [released]
9+
types: [ released ]
1010

1111
jobs:
1212
push_to_registry:
@@ -18,9 +18,9 @@ jobs:
1818
uses: actions/checkout@v3
1919
- name: Set up Docker Buildx
2020
id: buildx
21-
uses: docker/setup-buildx-action@v1
21+
uses: docker/setup-buildx-action@v2
2222
- name: Login to Docker Hub
23-
uses: docker/login-action@v1
23+
uses: docker/login-action@v2
2424
with:
2525
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2626
password: ${{ secrets.DOCKER_HUB_TOKEN }}
@@ -42,7 +42,7 @@ jobs:
4242
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
4343
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
4444
- name: Set up JDK 1.11
45-
uses: actions/setup-java@v3.2.0
45+
uses: actions/setup-java@v3.3.0
4646
with:
4747
distribution: 'zulu'
4848
java-version: '11'
@@ -57,6 +57,6 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
- name: Deploy with Maven to GitHub Packages and Docker Hub
60-
run: ./mvnw -B -s custom_maven_settings.xml -Prelease,native clean deploy
60+
run: ./mvnw -B -s custom_maven_settings.xml -Pnative-image,release clean deploy
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonarcloud-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fetch-depth: 0
3232

3333
- name: Set up JDK 1.11
34-
uses: actions/setup-java@v3.2.0
34+
uses: actions/setup-java@v3.3.0
3535
with:
3636
distribution: 'zulu'
3737
java-version: '11'

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SPDX-License-Identifier: Apache-2.0
77
[![Maven Build Github Action Status](<https://img.shields.io/github/workflow/status/com-pas/compas-scl-auto-alignment/Build%20Project?logo=GitHub>)](https://github.com/com-pas/compas-scl-auto-alignment/actions?query=workflow%3A%22Build+Project%22)
88
[![REUSE status](https://api.reuse.software/badge/github.com/com-pas/compas-scl-auto-alignment)](https://api.reuse.software/info/github.com/com-pas/compas-scl-auto-alignment)
99
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com-pas_compas-scl-auto-alignment&metric=alert_status)](https://sonarcloud.io/dashboard?id=com-pas_compas-scl-auto-alignment)
10+
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5925/badge)](https://bestpractices.coreinfrastructure.org/projects/5925)
1011
[![Slack](https://raw.githubusercontent.com/com-pas/compas-architecture/master/public/LFEnergy-slack.svg)](http://lfenergy.slack.com/)
1112

1213
# compas-scl-auto-alignment

app/pom.xml

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,50 @@ SPDX-License-Identifier: Apache-2.0
141141

142142
<profiles>
143143
<profile>
144-
<id>native</id>
144+
<id>jvm-image</id>
145145

146146
<properties>
147+
<!-- Make a Docker Image, so the integration tests will be executed against the container -->
148+
<quarkus.container-image.build>true</quarkus.container-image.build>
149+
</properties>
150+
151+
<build>
152+
<plugins>
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-failsafe-plugin</artifactId>
156+
<version>${surefire-plugin.version}</version>
157+
<executions>
158+
<execution>
159+
<goals>
160+
<goal>integration-test</goal>
161+
<goal>verify</goal>
162+
</goals>
163+
<configuration>
164+
<systemPropertyVariables>
165+
<java.util.logging.manager>
166+
org.jboss.logmanager.LogManager
167+
</java.util.logging.manager>
168+
<maven.home>${maven.home}</maven.home>
169+
</systemPropertyVariables>
170+
</configuration>
171+
</execution>
172+
</executions>
173+
</plugin>
174+
</plugins>
175+
</build>
176+
</profile>
177+
178+
<profile>
179+
<id>native-image</id>
180+
181+
<properties>
182+
<!-- Make a Docker Image, so the integration tests will be executed against the container -->
183+
<quarkus.container-image.build>true</quarkus.container-image.build>
184+
147185
<quarkus.package.type>native</quarkus.package.type>
148-
<quarkus.native.container-build>true</quarkus.native.container-build> <!-- Allows for creating a Linux executable without GraalVM being installed -->
149-
<quarkus.container-image.build>true</quarkus.container-image.build> <!-- Also make a Docker Image, so the native test will be executed against the container -->
186+
<!-- Allows for creating a Linux executable without GraalVM being installed -->
187+
<quarkus.native.container-build>true</quarkus.native.container-build>
150188
</properties>
151189

152190
<build>
@@ -163,8 +201,11 @@ SPDX-License-Identifier: Apache-2.0
163201
</goals>
164202
<configuration>
165203
<systemPropertyVariables>
166-
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
167-
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
204+
<native.image.path>
205+
${project.build.directory}/${project.build.finalName}-runner
206+
</native.image.path>
207+
<java.util.logging.manager>org.jboss.logmanager.LogManager
208+
</java.util.logging.manager>
168209
<maven.home>${maven.home}</maven.home>
169210
</systemPropertyVariables>
170211
</configuration>
@@ -190,8 +231,10 @@ SPDX-License-Identifier: Apache-2.0
190231
<id>release</id>
191232

192233
<properties>
193-
<!-- Properties only used for publishing a native docker image (default to Docker Hub) -->
234+
<!-- Make a Docker Image from the component -->
194235
<quarkus.container-image.build>true</quarkus.container-image.build>
236+
237+
<!-- Properties only used for publishing a native docker image (default to Docker Hub) -->
195238
<quarkus.container-image.push>true</quarkus.container-image.push>
196239
<quarkus.container-image.additional-tags>latest</quarkus.container-image.additional-tags>
197240
</properties>

app/src/main/docker/Dockerfile.jvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-jvm
2222
#
2323
###
24-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
24+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6
2525

2626
ARG JAVA_PACKAGE=java-11-openjdk-headless
2727
ARG RUN_JAVA_VERSION=1.3.8

app/src/main/docker/Dockerfile.native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# docker run -i --rm -p 8080:8080 quarkus/app
1515
#
1616
###
17-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
17+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6
1818
WORKDIR /work/
1919
RUN chown 1001 /work \
2020
&& chmod "g+rwX" /work \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
import io.quarkus.test.junit.QuarkusIntegrationTest;
77

88
@QuarkusIntegrationTest
9-
class NativeHealthCheckIT extends HealthCheckTest {
9+
class HealthCheckIT extends HealthCheckTest {
1010
// Execute the same tests but in native mode.
1111
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ SPDX-License-Identifier: Apache-2.0
2424
<surefire-plugin.version>3.0.0-M6</surefire-plugin.version>
2525
<sonarqube-plugin.version>3.2.0</sonarqube-plugin.version>
2626

27-
<compas.core.version>0.8.0</compas.core.version>
27+
<compas.core.version>0.9.0</compas.core.version>
2828

29-
<quarkus.platform.version>2.8.2.Final</quarkus.platform.version>
29+
<quarkus.platform.version>2.9.0.Final</quarkus.platform.version>
3030
<slf4j.version>1.7.36</slf4j.version>
3131
<powsybl.sld.version>2.10.0</powsybl.sld.version>
3232
<gson.version>2.9.0</gson.version>

0 commit comments

Comments
 (0)