Skip to content

Commit d01d77e

Browse files
authoredFeb 13, 2024
Fixes #414 - Refresh 'Build and push a GraalVM application to Azure Container Registry' example (#415)
1 parent 189a69e commit d01d77e

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed
 

Diff for: ‎acr/graalvm/Dockerfile.builder

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM ghcr.io/graalvm/graalvm-ce:ol8-java11-21.3.3
1+
FROM ghcr.io/graalvm/graalvm-ce:ol8-java17-22.3.3
22

33
RUN microdnf update -y
44
RUN microdnf install wget -y
55
RUN wget https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz -P /tmp
66
RUN tar xf /tmp/apache-maven-3.8.8-bin.tar.gz -C /opt
77
RUN ln -s /opt/apache-maven-3.8.8 /opt/maven
8-
RUN ln -s /opt/graalvm-ce-java11-21.3.3 /opt/graalvm
8+
RUN ln -s /opt/graalvm-ce-java17-22.3.3 /opt/graalvm
99
RUN gu install native-image
1010

1111
ENV JAVA_HOME=/opt/graalvm

Diff for: ‎acr/graalvm/pom.xml

+2-19
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,16 @@
99
<name>Build and push a GraalVM application to ACR</name>
1010
<properties>
1111
<!-- other -->
12-
<java.version>11</java.version>
12+
<java.version>17</java.version>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1414
<!-- plugins -->
1515
<azure-webapp-maven-plugin.version>2.12.0</azure-webapp-maven-plugin.version>
16-
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
16+
<maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
1717
<native-image-maven-plugin.version>21.2.0</native-image-maven-plugin.version>
1818
</properties>
1919
<build>
2020
<finalName>graalvm</finalName>
2121
<plugins>
22-
<plugin>
23-
<groupId>com.microsoft.azure</groupId>
24-
<artifactId>azure-webapp-maven-plugin</artifactId>
25-
<version>${azure-webapp-maven-plugin.version}</version>
26-
<configuration>
27-
<schemaVersion>V2</schemaVersion>
28-
<resourceGroup>${resourceGroup}</resourceGroup>
29-
<appName>${appName}</appName>
30-
<appServicePlanName>${appServicePlanName}</appServicePlanName>
31-
<runtime>
32-
<os>docker</os>
33-
<image>${image}</image>
34-
<serverId>${serverId}</serverId>
35-
<registryUrl>${registryUrl}</registryUrl>
36-
</runtime>
37-
</configuration>
38-
</plugin>
3922
<plugin>
4023
<groupId>org.apache.maven.plugins</groupId>
4124
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)
Please sign in to comment.