This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a2e14f943b Fixes the build of fully statically linked GraalVM Native 
Images (#37967)
9a2e14f943b is described below

commit 9a2e14f943b11c0240509783329185c885cbf12f
Author: Ling Hengqian <[email protected]>
AuthorDate: Fri Feb 6 19:06:49 2026 +0800

    Fixes the build of fully statically linked GraalVM Native Images (#37967)
---
 .github/workflows/nightly-build.yml                                | 7 +++++--
 distribution/proxy-native/Dockerfile-linux-static                  | 2 +-
 .../shardingsphere-proxy/startup/graalvm-native-image.cn.md        | 2 +-
 .../shardingsphere-proxy/startup/graalvm-native-image.en.md        | 2 +-
 4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/nightly-build.yml 
b/.github/workflows/nightly-build.yml
index a800521c436..ab93e95a2bc 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -145,13 +145,16 @@ jobs:
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
-      - name: Push Docker Image by arm64 or x64
+      - name: Push dynamic linked Docker Image by x64 or arm64
         run: |
           ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.sha }} "-DskipTests" 
clean package
-      - name: Push Docker Image by x64
+      - name: Push mostly static linked Docker Image by x64
         if: matrix.os == 'ubuntu-latest'
         run: |
           ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.sha }}-mostly 
"-Dproxy.native.dockerfile=Dockerfile-linux-mostly" "-DskipTests" clean package
+      - name: Push fully static linked Docker Image by x64
+        if: matrix.os == 'ubuntu-latest'
+        run: |
           ./mvnw -am -pl distribution/proxy-native -T1C 
"-Pdocker.push.native.linux" -Dproxy.native.image.repository=${{ 
env.PROXY_NATIVE }} -Dproxy.native.image.tag=${{ github.sha }}-static 
"-Dproxy.native.dockerfile=Dockerfile-linux-static" "-DskipTests" clean package
 
   build-agent-image:
diff --git a/distribution/proxy-native/Dockerfile-linux-static 
b/distribution/proxy-native/Dockerfile-linux-static
index 8bfd7a02458..44fdabebc88 100644
--- a/distribution/proxy-native/Dockerfile-linux-static
+++ b/distribution/proxy-native/Dockerfile-linux-static
@@ -16,7 +16,7 @@
 #
 
 FROM ghcr.io/graalvm/native-image-community:24.0.2-muslib AS nativebuild
-ENV NATIVE_IMAGE_OPTIONS="--static,--libc=musl"
+ENV NATIVE_IMAGE_OPTIONS="--static --libc=musl"
 WORKDIR /build
 COPY ./ .
 RUN --mount=type=cache,target=/root/.m2 ./mvnw -am -pl 
distribution/proxy-native -T1C -DskipTests "-Prelease.native" clean package
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
index 1078c1e29a6..c29508761ee 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.cn.md
@@ -298,7 +298,7 @@ services:
 
 ##### 静态编译所需的本地工具链
 
-开发者如需构建 `大部分静态链接的 GraalVM Native Image` 或 `完全静态链接的 GraalVM Native Image`,
+开发者如需构建 `完全静态链接的 GraalVM Native Image`,
 则需要按 
https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/
 要求,从源代码构建 musl。
 
 #### 构建动态链接的 GraalVM Native Image
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
index a6404b54970..099d07f4a9d 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/startup/graalvm-native-image.en.md
@@ -301,7 +301,7 @@ However, it is not necessary to install Container Runtime.
 
 ##### Native toolchain for static compilation
 
-Developers who want to build a `mostly statically linked GraalVM Native Image` 
or a `fully statically linked GraalVM Native Image`,
+Developers who want to build a `fully statically linked GraalVM Native Image`,
 will need to build musl from source as described in 
https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/
 .
 
 #### Build a dynamically linked GraalVM Native Image

Reply via email to