You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ks...@apache.org on 2022/05/16 19:37:15 UTC

[arrow] branch master updated: MINOR: [CI] Fix centos cmake path (#13167)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new eb7f986a67 MINOR: [CI] Fix centos cmake path (#13167)
eb7f986a67 is described below

commit eb7f986a6707226bcf41754ca82b5727de83ad2d
Author: Jacob Wujciak-Jens <ja...@wujciak.de>
AuthorDate: Mon May 16 21:37:07 2022 +0200

    MINOR: [CI] Fix centos cmake path (#13167)
    
    * fix centos cmake path
    
    * extract to standardized dir
---
 ci/docker/centos-7-cpp.dockerfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ci/docker/centos-7-cpp.dockerfile b/ci/docker/centos-7-cpp.dockerfile
index 945534900e..09a3234e3f 100644
--- a/ci/docker/centos-7-cpp.dockerfile
+++ b/ci/docker/centos-7-cpp.dockerfile
@@ -27,10 +27,11 @@ RUN yum install -y \
         which
 
 # yum install cmake version is too old
-
 ARG cmake=3.23.1
-RUN wget -nv -O - https://github.com/Kitware/CMake/releases/download/v${cmake}/cmake-${cmake}-Linux-x86_64.tar.gz | tar -xzf - -C /opt
-ENV PATH=/opt/cmake-${cmake}-Linux-x86_64/bin:$PATH
+RUN mkdir /opt/cmake-${cmake}
+RUN wget -nv -O - https://github.com/Kitware/CMake/releases/download/v${cmake}/cmake-${cmake}-Linux-x86_64.tar.gz | \
+    tar -xzf -  --strip-components=1 -C /opt/cmake-${cmake}
+ENV PATH=/opt/cmake-${cmake}/bin:$PATH
 ENV CC=/usr/bin/gcc
 ENV CXX=/usr/bin/g++
 ENV EXTRA_CMAKE_FLAGS="-DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX"