From 1e94e8735b958a3e652fef221adbf3644534ae93 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Fri, 31 Oct 2025 19:01:11 +1300 Subject: [PATCH 1/3] Linux fully static build with --static --libc=musl --- pom.xml | 86 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 42 insertions(+), 44 deletions(-) diff --git a/pom.xml b/pom.xml index 24f1ba1..ad81f42 100644 --- a/pom.xml +++ b/pom.xml @@ -293,53 +293,51 @@ --no-fallback --allow-incomplete-classpath -march=compatibility + --static + --libc=musl - - com.google.cloud.tools - jib-maven-plugin - 3.4.6 - - - com.google.cloud.tools - jib-native-image-extension-maven - 0.1.0 - - - - - package - - build - - - - - - redhat/ubi10-micro:10.0 - - - docker.io/rbygrave/ebean-insight - ${project.version} - - - - - - - 8081 - - - - com.google.cloud.tools.jib.maven.extension.nativeimage.JibNativeImageExtension - - ebean-insight - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From f667e82d92a38e477674f6bbcf869378e18ce568 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Fri, 31 Oct 2025 19:07:02 +1300 Subject: [PATCH 2/3] Add install musl-tools to gh build --- .github/workflows/native-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index 68404c7..211fd83 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -19,6 +19,11 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' + - name: install musl-tools + run: | + sudo apt-get update + sudo apt-get install -y musl-tools + - name: maven version run: mvn --version From b19acb1de9b22f66661dd9ce8546c90909581205 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Fri, 31 Oct 2025 19:39:13 +1300 Subject: [PATCH 3/3] Add install musl-tools to gh build - add zlib1g-dev --- .github/workflows/native-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index 211fd83..5d2668b 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -23,6 +23,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y musl-tools + sudo apt-get install -y zlib1g-dev - name: maven version run: mvn --version