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

philo 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 54c65eb534 [VL] Follow-up for #7481 to fix docker build error (#7491)
54c65eb534 is described below

commit 54c65eb534733bce39c1f3ec824ad280b4ca258a
Author: PHILO-HE <[email protected]>
AuthorDate: Sat Oct 12 09:59:02 2024 +0800

    [VL] Follow-up for #7481 to fix docker build error (#7491)
---
 .github/workflows/docker/Dockerfile.gha | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/docker/Dockerfile.gha 
b/.github/workflows/docker/Dockerfile.gha
index 2dd80724ac..860a01a54c 100644
--- a/.github/workflows/docker/Dockerfile.gha
+++ b/.github/workflows/docker/Dockerfile.gha
@@ -4,20 +4,17 @@ RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" 
/etc/yum.repos.d/CentOS-* || true
 RUN sed -i -e 
"s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" 
/etc/yum.repos.d/CentOS-* || true
 
 RUN yum update -y && yum install -y epel-release sudo dnf
-
 RUN dnf install -y --setopt=install_weak_deps=False gcc-toolset-9
-RUN source /opt/rh/gcc-toolset-9/enable || exit 1
-
 RUN echo "check_certificate = off" >> ~/.wgetrc
 
 RUN yum install -y java-1.8.0-openjdk-devel patch wget git perl
-RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk && export 
PATH=$JAVA_HOME/bin:$PATH
+ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
+ENV PATH=$JAVA_HOME/bin:$PATH
 RUN wget --no-check-certificate 
https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
 && \
     tar -xvf apache-maven-3.8.8-bin.tar.gz && \
-    mv apache-maven-3.8.8 /usr/lib/maven && \
-    export MAVEN_HOME=/usr/lib/maven && \
-    export PATH=${PATH}:${MAVEN_HOME}/bin
+    mv apache-maven-3.8.8 /usr/lib/maven
+ENV PATH=${PATH}:/usr/lib/maven/bin
 
 RUN git clone --depth=1 https://github.com/apache/incubator-gluten /opt/gluten
 
-RUN cd /opt/gluten && ./dev/builddeps-veloxbe.sh --run_setup_script=ON 
build_arrow && rm -rf /opt/gluten
+RUN cd /opt/gluten && source /opt/rh/gcc-toolset-9/enable && 
./dev/builddeps-veloxbe.sh --run_setup_script=ON build_arrow && rm -rf 
/opt/gluten


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to