Skip to content

Commit

Permalink
updated dockerfile with java 17
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Blower <[email protected]>
  • Loading branch information
Giuseppe Falco-Scampatelli authored and ElvenSpellmaker committed Mar 4, 2024
1 parent da4baba commit 330c286
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions api-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<parallel.tests>4</parallel.tests>
<webdriver.base.url/>
<jackson.version>2.12.3</jackson.version>
<java.version>17</java.version>

<!-- Set 'pact.broker.url' and 'pact.broker.token' -->
<pact.broker.url/>
Expand Down Expand Up @@ -53,7 +54,7 @@
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<pact.provider-plugin.version>4.3.2</pact.provider-plugin.version>
<maven-pmd-plugin.version>3.15.0</maven-pmd-plugin.version>
<findbugs-maven-plugin.version>3.0.5</findbugs-maven-plugin.version>
Expand Down Expand Up @@ -427,8 +428,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
<release>${java.version}</release>
</configuration>
</plugin>
<plugin>
Expand Down
4 changes: 2 additions & 2 deletions java/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM azul/zulu-openjdk-alpine:11 as build
FROM azul/zulu-openjdk-alpine:17.0.9 as build
WORKDIR /workspace/app

# Copy the m2 directory if it exists to re-use an external cache.
Expand All @@ -18,7 +18,7 @@ RUN ./mvnw dependency:go-offline --quiet\
&& ./mvnw clean package -Dmaven.default-test.skip=true -Dmaven.test.skip=true -DskipTests --no-transfer-progress --quiet\
&& mkdir -p extracted && java -Djarmode=layertools -jar target/*.jar extract --destination extracted

FROM azul/zulu-openjdk-alpine:11-jre
FROM azul/zulu-openjdk-alpine:17-jre

VOLUME /tmp

Expand Down

0 comments on commit 330c286

Please sign in to comment.