This is an automated email from the ASF dual-hosted git repository.
yuanzhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new f5c368b4d2 [GLUTEN-10599][VL] Fix Centos dev docker image build
(#10600)
f5c368b4d2 is described below
commit f5c368b4d270f47751ecee36896f3c1ad97b9983
Author: Yuan <[email protected]>
AuthorDate: Tue Sep 2 17:26:34 2025 +0100
[GLUTEN-10599][VL] Fix Centos dev docker image build (#10600)
* [VL] fix centos docker image build
---------
Signed-off-by: Yuan <[email protected]>
---
dev/builddeps-veloxbe.sh | 9 +++++----
dev/docker/Dockerfile.centos7-static-build | 1 +
dev/vcpkg/setup-build-depends.sh | 1 +
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/dev/builddeps-veloxbe.sh b/dev/builddeps-veloxbe.sh
index 6688818b73..0eb1a0b2e3 100755
--- a/dev/builddeps-veloxbe.sh
+++ b/dev/builddeps-veloxbe.sh
@@ -208,6 +208,9 @@ fi
concat_velox_param
function build_arrow {
+ if [ ! -d "$GLUTEN_DIR/ep/build-velox/build/velox_ep" ]; then
+ get_velox && setup_dependencies
+ fi
cd $GLUTEN_DIR/dev
source ./build_arrow.sh
}
@@ -261,10 +264,8 @@ function build_velox_backend {
}
function get_velox {
- (
- cd $GLUTEN_DIR/ep/build-velox/src
- ./get_velox.sh $VELOX_PARAMETER
- )
+ cd $GLUTEN_DIR/ep/build-velox/src
+ ./get_velox.sh $VELOX_PARAMETER
}
function setup_dependencies {
diff --git a/dev/docker/Dockerfile.centos7-static-build
b/dev/docker/Dockerfile.centos7-static-build
index dfd2499e58..e015dc5178 100644
--- a/dev/docker/Dockerfile.centos7-static-build
+++ b/dev/docker/Dockerfile.centos7-static-build
@@ -42,6 +42,7 @@ RUN set -ex; \
echo "Build arrow, then install the native libs to system paths and jar
package to .m2/ directory."; \
cd /opt/gluten; \
source /opt/rh/devtoolset-11/enable; \
+ source /opt/rh/rh-git227/enable; \
bash ./dev/builddeps-veloxbe.sh --enable_vcpkg=ON --build_tests=ON
--enable_s3=ON --enable_gcs=ON \
--enable_hdfs=ON --enable_abfs=ON
build_arrow; \
mvn dependency:go-offline -Pbackends-velox -Piceberg -Pdelta -Pspark-3.5
-DskipTests; \
diff --git a/dev/vcpkg/setup-build-depends.sh b/dev/vcpkg/setup-build-depends.sh
index 6d4695fb00..d2cec5b744 100755
--- a/dev/vcpkg/setup-build-depends.sh
+++ b/dev/vcpkg/setup-build-depends.sh
@@ -102,6 +102,7 @@ install_centos_7() {
# Requires 'centos-release-scl' package to be installed.
yum -y install rh-git227
source /opt/rh/rh-git227/enable
+ echo "source /opt/rh/rh-git227/enable" >> ~/.bashrc
fi
# flex>=2.6.0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]