Skip to content

Commit

Permalink
Fixes #414 - Refresh 'Build and push a GraalVM application to Azure C…
Browse files Browse the repository at this point in the history
…ontainer Registry' example (#415)
  • Loading branch information
mnriem authored Feb 13, 2024
1 parent 189a69e commit d01d77e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
4 changes: 2 additions & 2 deletions acr/graalvm/Dockerfile.builder
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM ghcr.io/graalvm/graalvm-ce:ol8-java11-21.3.3
FROM ghcr.io/graalvm/graalvm-ce:ol8-java17-22.3.3

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

ENV JAVA_HOME=/opt/graalvm
Expand Down
21 changes: 2 additions & 19 deletions acr/graalvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,16 @@
<name>Build and push a GraalVM application to ACR</name>
<properties>
<!-- other -->
<java.version>11</java.version>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- plugins -->
<azure-webapp-maven-plugin.version>2.12.0</azure-webapp-maven-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
<native-image-maven-plugin.version>21.2.0</native-image-maven-plugin.version>
</properties>
<build>
<finalName>graalvm</finalName>
<plugins>
<plugin>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-webapp-maven-plugin</artifactId>
<version>${azure-webapp-maven-plugin.version}</version>
<configuration>
<schemaVersion>V2</schemaVersion>
<resourceGroup>${resourceGroup}</resourceGroup>
<appName>${appName}</appName>
<appServicePlanName>${appServicePlanName}</appServicePlanName>
<runtime>
<os>docker</os>
<image>${image}</image>
<serverId>${serverId}</serverId>
<registryUrl>${registryUrl}</registryUrl>
</runtime>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit d01d77e

Please sign in to comment.