Skip to content

Commit

Permalink
Update build dockerfiles to use current GraalVM
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 20, 2023
1 parent 2e0e058 commit 158b6bc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 24 deletions.
6 changes: 3 additions & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>mapping</artifactId>
<version>5.3.3</version>
<version>5.3.3-SNAPSHOT</version>
</dependency>

<!-- spring (boot) -->
Expand Down Expand Up @@ -505,7 +505,7 @@
<builder>paketobuildpacks/builder:tiny</builder>
<env>
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
<!-- <BP_NATIVE_IMAGE_BUILD_ARGUMENTS>-march=compatibility</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>-->
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>-march=compatibility</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
</env>
</image>
</configuration>
Expand All @@ -530,7 +530,7 @@
<buildArg>-H:DeadlockWatchdogInterval=0</buildArg>
<buildArg>--initialize-at-build-time=org.apache.commons.logging.LogFactoryService</buildArg>
<buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg>
<!-- <buildArg>-march=compatibility</buildArg>-->
<buildArg>-march=compatibility</buildArg>
<buildArg>--no-fallback -J-Xmx7g</buildArg>
</buildArgs>
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
Expand Down
6 changes: 0 additions & 6 deletions core/src/main/resources/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#@formatter:off
- version: "v5.3.3"
date: "2023-11-20"
changes:
- type: "fix"
text: "Windows releases didn't run on intel CPUs (see what I wrote below about this being hard?). See #899"
final: true
- version: "v5.3.2"
date: "2023-11-18"
changes:
Expand Down
9 changes: 2 additions & 7 deletions misc/build-and-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,6 @@ try {
exit 1
}

2

Write-Host "Replace core.exe and pr any key to continue..."
$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

$windowsVersion = releases/windows-release/include/core.exe -version
if ($windowsVersion -ne $version) {
Write-Error "Windows version $version expected but is $windowsVersion"
Expand Down Expand Up @@ -269,10 +264,10 @@ if (-not $?) {
exit 1
}
if ($dryRun) {
Write-Host "Committing update to $version (not really, just dry run) ***********************************************************************"
Write-Host "Committing update to $nextVersion (not really, just dry run) ***********************************************************************"
} else {
Write-Host "Committing ***********************************************************************"
git commit -am "Update to $version"
git commit -am "Update to $nextVersion"
if (-not $?) {
Write-Error "Commit failed"
git reset --hard
Expand Down
8 changes: 4 additions & 4 deletions misc/buildLinuxCore/amd64/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ ENV M2_HOME=/opt/maven
ENV MAVEN_HOME=/opt/maven
ENV PATH=${M2_HOME}/bin:${PATH}

RUN wget -nv --no-check-certificate https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.3/graalvm-ce-java17-linux-amd64-22.3.3.tar.gz
RUN tar xzf graalvm-ce-java17-linux-amd64-22.3.3.tar.gz -C /
ENV PATH=/graalvm-ce-java17-22.3.3/bin/:$PATH
ENV JAVA_HOME=/graalvm-ce-java17-22.3.3
RUN wget -nv --no-check-certificate https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz
RUN tar xzf graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz -C /
ENV PATH=/graalvm-community-openjdk-17.0.9+9.1/bin/:$PATH
ENV JAVA_HOME=/graalvm-community-openjdk-17.0.9+9.1

# When you update this also change the directory in buildInContainer.sh
RUN wget -nv --no-check-certificate https://github.com/upx/upx/releases/download/v4.2.1/upx-4.2.1-amd64_linux.tar.xz
Expand Down
8 changes: 4 additions & 4 deletions misc/buildLinuxCore/arm64/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ ENV M2_HOME=/opt/maven
ENV MAVEN_HOME=/opt/maven
ENV PATH=${M2_HOME}/bin:${PATH}

RUN wget -nv --no-check-certificate https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.3/graalvm-ce-java17-linux-aarch64-22.3.3.tar.gz
RUN tar xzf graalvm-ce-java17-linux-aarch64-22.3.3.tar.gz -C /
ENV PATH=/graalvm-ce-java17-22.3.3/bin/:$PATH
ENV JAVA_HOME=/graalvm-ce-java17-22.3.3
RUN wget -nv --no-check-certificate https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-aarch64_bin.tar.gz
RUN tar xzf graalvm-community-jdk-17.0.9_linux-aarch64_bin.tar.gz -C /
ENV PATH=/graalvm-community-openjdk-17.0.9+9.1/bin/:$PATH
ENV JAVA_HOME=/graalvm-community-openjdk-17.0.9+9.1

# When you update this also change the directory in buildInContainer.sh
RUN wget -nv --no-check-certificate https://github.com/upx/upx/releases/download/v4.2.1/upx-4.2.1-arm64_linux.tar.xz
Expand Down

0 comments on commit 158b6bc

Please sign in to comment.