# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, | |
# software distributed under the License is distributed on an | |
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
# KIND, either express or implied. See the License for the | |
# specific language governing permissions and limitations | |
# under the License. | |
FROM centos:centos7 | |
RUN yum install -y \ | |
diffutils \ | |
gcc-c++ \ | |
libcurl-devel \ | |
make \ | |
openssl-devel \ | |
wget \ | |
which | |
# yum install cmake version is too old | |
ARG cmake=3.23.1 | |
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" | |
ENV ARROW_R_DEV=TRUE |