Apache DataFusion SQL Query Engine
ARROW-8252: [CI][Ruby] Add Ubuntu 20.04
Sutou Kouhei1817507987e4
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.ymlindex 2877736c70..dfa6530679 100644--- a/.github/workflows/ruby.yml+++ b/.github/workflows/ruby.yml@@ -44,6 +44,7 @@ jobs:ubuntu:- 16.04- 18.04+ - 20.04env:UBUNTU: ${{ matrix.ubuntu }}steps:diff --git a/ci/docker/linux-apt-c-glib.dockerfile b/ci/docker/linux-apt-c-glib.dockerfileindex 16580d247d..3d1658ff7b 100644--- a/ci/docker/linux-apt-c-glib.dockerfile+++ b/ci/docker/linux-apt-c-glib.dockerfile@@ -37,7 +37,23 @@ RUN apt-get update -y -q && \RUN luarocks install lgi-RUN pip3 install meson && \+# pip on Ubuntu 20.04 may be buggy:+#+# Collecting meson+# Downloading meson-0.53.2.tar.gz (1.6 MB)+# Installing build dependencies: started+# Installing build dependencies: finished with status 'done'+# Getting requirements to build wheel: started+# Getting requirements to build wheel: finished with status 'error'+# ERROR: Command errored out with exit status 1:+# command: /usr/bin/python3 /usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpsk4jveay+# cwd: /tmp/pip-install-jn79a_kh/meson+# Complete output (1 lines):+# /usr/bin/python3: can't find '__main__' module in '/usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py'+# ----------------------------------------+# ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpsk4jveay Check the logs for full command output.+RUN (python3 -m pip install meson || \+ python3 -m pip install --no-use-pep517 meson) && \gem install bundlerCOPY c_glib/Gemfile /arrow/c_glib/diff --git a/ci/docker/ubuntu-20.04-cpp.dockerfile b/ci/docker/ubuntu-20.04-cpp.dockerfilenew file mode 100644index 0000000000..e08c3e6996--- /dev/null+++ b/ci/docker/ubuntu-20.04-cpp.dockerfile@@ -0,0 +1,110 @@+# 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.++ARG arch=amd64+FROM ${arch}/ubuntu:20.04++SHELL ["/bin/bash", "-o", "pipefail", "-c"]++RUN echo "debconf debconf/frontend select Noninteractive" | \+ debconf-set-selections++# Installs LLVM toolchain, for Gandiva and testing other compilers+#+# Note that this is installed before the base packages to improve iteration+# while debugging package list with docker build.+ARG clang_tools+ARG llvm+RUN apt-get update -y -q && \+ apt-get install -y -q --no-install-recommends \+ clang-${clang_tools} \+ clang-${llvm} \+ clang-format-${clang_tools} \+ clang-tidy-${clang_tools} \+ llvm-${llvm}-dev && \+ apt-get clean && \+ rm -rf /var/lib/apt/lists*++# Installs C++ toolchain and dependencies+RUN apt-get update -y -q && \+ apt-get install -y -q --no-install-recommends \+ autoconf \+ ca-certificates \+ ccache \+ cmake \+ g++ \+ gcc \+ gdb \+ git \+ libbenchmark-dev \+ libboost-filesystem-dev \+ libboost-regex-dev \+ libboost-system-dev \+ libbrotli-dev \+ libbz2-dev \+ libgflags-dev \+ libgoogle-glog-dev \+ liblz4-dev \+ libprotobuf-dev \+ libprotoc-dev \+ libre2-dev \+ libsnappy-dev \+ libssl-dev \+ libzstd-dev \+ ninja-build \+ pkg-config \+ protobuf-compiler \+ rapidjson-dev \+ tzdata && \+ apt-get clean && \+ rm -rf /var/lib/apt/lists*++# Prioritize system packages and local installation+# The following dependencies will be downloaded due to missing/invalid packages+# provided by the distribution:+# - libc-ares-dev does not install CMake config files+# - flatbuffer is not packaged+# - libgtest-dev only provide sources+# - libprotobuf-dev only provide sources+# - thrift is too old+ENV ARROW_BUILD_TESTS=ON \+ ARROW_DEPENDENCY_SOURCE=SYSTEM \+ ARROW_DATASET=ON \+ ARROW_FLIGHT=OFF \+ ARROW_GANDIVA=ON \+ ARROW_HDFS=ON \+ ARROW_HOME=/usr/local \+ ARROW_INSTALL_NAME_RPATH=OFF \+ ARROW_NO_DEPRECATED_API=ON \+ ARROW_ORC=ON \+ ARROW_PARQUET=ON \+ ARROW_PLASMA=ON \+ ARROW_USE_ASAN=OFF \+ ARROW_USE_CCACHE=ON \+ ARROW_USE_UBSAN=OFF \+ ARROW_WITH_BROTLI=ON \+ ARROW_WITH_BZ2=ON \+ ARROW_WITH_LZ4=ON \+ ARROW_WITH_SNAPPY=ON \+ ARROW_WITH_ZLIB=ON \+ ARROW_WITH_ZSTD=ON \+ GTest_SOURCE=BUNDLED \+ ORC_SOURCE=BUNDLED \+ PARQUET_BUILD_EXECUTABLES=ON \+ PARQUET_BUILD_EXAMPLES=ON \+ PATH=/usr/lib/ccache/:$PATH \+ Thrift_SOURCE=BUNDLEDdiff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-focal/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-focal/Dockerfileindex 65e473dbcb..8d3b5f0630 100644--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-focal/Dockerfile+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-focal/Dockerfile@@ -63,6 +63,7 @@ RUN \python3-dev \python3-numpy \python3-pip \+ python3-setuptools \rapidjson-dev \tzdata \zlib1g-dev && \@@ -70,6 +71,6 @@ RUN \apt install -y -V ${quiet} nvidia-cuda-toolkit; \fi && \apt clean && \- pip3 install --upgrade meson && \+ python3 -m pip install --no-use-pep517 meson && \ln -s /usr/local/bin/meson /usr/bin/ && \rm -rf /var/lib/apt/lists/*diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlindex f7686d5a85..7f528533c4 100644--- a/dev/tasks/tasks.yml+++ b/dev/tasks/tasks.yml@@ -250,6 +250,7 @@ groups:- ubuntu-xenial- ubuntu-bionic- ubuntu-eoan+ - ubuntu-focal- centos-6- centos-7- centos-8diff --git a/docker-compose.yml b/docker-compose.ymlindex d0baea2cc4..9c713909fd 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -69,6 +69,7 @@ volumes:amd64-ubuntu-14.04-cache:amd64-ubuntu-16.04-cache:amd64-ubuntu-18.04-cache:+ amd64-ubuntu-20.04-cache:maven-cache:x-ccache: &ccache@@ -215,7 +216,7 @@ services:# docker-compose run --rm ubuntu-cpp# Parameters:# ARCH: amd64, arm64v8, ...- # UBUNTU: 18.04, 16.04, 14.04+ # UBUNTU: 16.04, 18.04, 20.04image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cppbuild:context: .@@ -242,7 +243,7 @@ services:# docker-compose run --rm ubuntu-cpp-sanitizer# Parameters:# ARCH: amd64, arm64v8, ...- # UBUNTU: 18.04, 16.04, 14.04+ # UBUNTU: 16.04, 18.04, 20.04image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cppcap_add:# For LeakSanitizer@@ -276,7 +277,7 @@ services:# docker-compose run --rm fedora-cpp# Parameters:# ARCH: amd64, arm64v8, ...- # FEDORA: 30, ...+ # FEDORA: 30image: ${REPO}:${ARCH}-fedora-${FEDORA}-cppbuild:context: .@@ -333,7 +334,7 @@ services:# docker-compose run --rm ubuntu-c-glib# Parameters:# ARCH: amd64, arm64v8, ...- # UBUNTU: 18.04, 16.04, 14.04+ # UBUNTU: 16.04, 18.04, 20.04image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-c-glibbuild:context: .@@ -393,7 +394,7 @@ services:# docker-compose run --rm ubuntu-ruby# Parameters:# ARCH: amd64, arm64v8, ...- # UBUNTU: 18.04, 16.04, 14.04+ # UBUNTU: 16.04, 18.04, 20.04image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-rubybuild:context: .@@ -493,7 +494,7 @@ services:# docker-compose run --rm ubuntu-python# Parameters:# ARCH: amd64, arm64v8, ...- # UBUNTU: 18.04, 16.04, 14.04+ # UBUNTU: 16.04, 18.04, 20.04image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-python-3build:context: .@@ -515,7 +516,7 @@ services:# docker-compose run --rm fedora-python# Parameters:# ARCH: amd64, arm64v8, ...- # UBUNTU: 29, ...+ # FEDORA: 30image: ${REPO}:${ARCH}-fedora-${FEDORA}-python-3build:context: .