Apache DataFusion SQL Query Engine
ARROW-4309: [Documentation] Add a docker-compose entry which builds the documentation with CUDA enabled
Krisztián Szűcs84f2476b3a8f
diff --git a/ci/docker/cuda-10.0-cpp.dockerfile b/ci/docker/cuda-10.0-cpp.dockerfiledeleted file mode 100644index 0697513d30..0000000000--- a/ci/docker/cuda-10.0-cpp.dockerfile+++ /dev/null@@ -1,91 +0,0 @@-# 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 nvidia/cuda:10.0-devel-ubuntu18.04--# pipefail is enabled for proper error detection in the `wget | apt-key add`-# step-SHELL ["/bin/bash", "-o", "pipefail", "-c"]--ENV DEBIAN_FRONTEND=noninteractive--RUN apt-get update -y -q && \- apt-get install -y -q --no-install-recommends \- wget software-properties-common gpg-agent && \- 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 \- git \- libbenchmark-dev \- libboost-filesystem-dev \- libboost-regex-dev \- libboost-system-dev \- libbrotli-dev \- libbz2-dev \- libgflags-dev \- libgoogle-glog-dev \- liblz4-dev \- liblzma-dev \- libprotobuf-dev \- libprotoc-dev \- libre2-dev \- libsnappy-dev \- libssl-dev \- libzstd-dev \- ninja-build \- pkg-config \- protobuf-compiler \- python-minimal \- 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_STATIC=OFF \- ARROW_BUILD_TESTS=ON \- ARROW_COMPUTE=OFF \- ARROW_CSV=OFF \- ARROW_CUDA=ON \- ARROW_DATASET=OFF \- ARROW_DEPENDENCY_SOURCE=SYSTEM \- ARROW_FILESYSTEM=OFF \- ARROW_FLIGHT=OFF \- ARROW_HOME=/usr/local \- ARROW_INSTALL_NAME_RPATH=OFF \- ARROW_NO_DEPRECATED_API=ON \- ARROW_PLASMA=ON \- ARROW_USE_CCACHE=ON \- CUDA_LIB_PATH=${LIBRARY_PATH} \- GTest_SOURCE=BUNDLED \- ORC_SOURCE=BUNDLED \- PATH=/usr/lib/ccache/:$PATH \- Thrift_SOURCE=BUNDLEDdiff --git a/ci/docker/cuda-10.1-cpp.dockerfile b/ci/docker/cuda-10.1-cpp.dockerfiledeleted file mode 100644index 6e86ca97fc..0000000000--- a/ci/docker/cuda-10.1-cpp.dockerfile+++ /dev/null@@ -1,91 +0,0 @@-# 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 nvidia/cuda:10.1-devel-ubuntu18.04--# pipefail is enabled for proper error detection in the `wget | apt-key add`-# step-SHELL ["/bin/bash", "-o", "pipefail", "-c"]--ENV DEBIAN_FRONTEND=noninteractive--RUN apt-get update -y -q && \- apt-get install -y -q --no-install-recommends \- wget software-properties-common gpg-agent && \- 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 \- git \- libbenchmark-dev \- libboost-filesystem-dev \- libboost-regex-dev \- libboost-system-dev \- libbrotli-dev \- libbz2-dev \- libgflags-dev \- libgoogle-glog-dev \- liblz4-dev \- liblzma-dev \- libprotobuf-dev \- libprotoc-dev \- libre2-dev \- libsnappy-dev \- libssl-dev \- libzstd-dev \- ninja-build \- pkg-config \- protobuf-compiler \- python-minimal \- 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_STATIC=OFF \- ARROW_BUILD_TESTS=ON \- ARROW_COMPUTE=OFF \- ARROW_CSV=OFF \- ARROW_CUDA=ON \- ARROW_DATASET=OFF \- ARROW_DEPENDENCY_SOURCE=SYSTEM \- ARROW_FILESYSTEM=OFF \- ARROW_FLIGHT=OFF \- ARROW_HOME=/usr/local \- ARROW_INSTALL_NAME_RPATH=OFF \- ARROW_NO_DEPRECATED_API=ON \- ARROW_PLASMA=ON \- ARROW_USE_CCACHE=ON \- CUDA_LIB_PATH=${LIBRARY_PATH} \- GTest_SOURCE=BUNDLED \- ORC_SOURCE=BUNDLED \- PATH=/usr/lib/ccache/:$PATH \- Thrift_SOURCE=BUNDLEDdiff --git a/ci/docker/cuda-9.1-cpp.dockerfile b/ci/docker/cuda-9.1-cpp.dockerfiledeleted file mode 100644index bf3242ea18..0000000000--- a/ci/docker/cuda-9.1-cpp.dockerfile+++ /dev/null@@ -1,90 +0,0 @@-# 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 nvidia/cuda:9.1-devel-ubuntu16.04--# pipefail is enabled for proper error detection in the `wget | apt-key add`-# step-SHELL ["/bin/bash", "-o", "pipefail", "-c"]--ENV DEBIAN_FRONTEND=noninteractive--RUN apt-get update -y -q && \- apt-get install -y -q --no-install-recommends \- wget software-properties-common && \- 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 \- libboost-filesystem-dev \- libboost-regex-dev \- libboost-system-dev \- libbrotli-dev \- libbz2-dev \- libgflags-dev \- libgoogle-glog-dev \- liblz4-dev \- liblzma-dev \- libprotobuf-dev \- libprotoc-dev \- libre2-dev \- libsnappy-dev \- libssl-dev \- libzstd-dev \- ninja-build \- pkg-config \- protobuf-compiler \- python-minimal \- 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_STATIC=OFF \- ARROW_BUILD_TESTS=ON \- ARROW_COMPUTE=OFF \- ARROW_CSV=OFF \- ARROW_CUDA=ON \- ARROW_DATASET=OFF \- ARROW_DEPENDENCY_SOURCE=SYSTEM \- ARROW_FILESYSTEM=OFF \- ARROW_FLIGHT=OFF \- ARROW_HOME=/usr/local \- ARROW_INSTALL_NAME_RPATH=OFF \- ARROW_NO_DEPRECATED_API=ON \- ARROW_PLASMA=ON \- ARROW_USE_CCACHE=ON \- GTest_SOURCE=BUNDLED \- ORC_SOURCE=BUNDLED \- PATH=/usr/lib/ccache/:$PATH \- Thrift_SOURCE=BUNDLEDdiff --git a/ci/docker/ubuntu-16.04-cpp.dockerfile b/ci/docker/ubuntu-16.04-cpp.dockerfileindex e94dc8ac53..5c98ae30e1 100644--- a/ci/docker/ubuntu-16.04-cpp.dockerfile+++ b/ci/docker/ubuntu-16.04-cpp.dockerfile@@ -15,8 +15,8 @@# specific language governing permissions and limitations# under the License.-ARG arch=amd64-FROM ${arch}/ubuntu:16.04+ARG base=amd64/ubuntu:16.04+FROM ${base}SHELL ["/bin/bash", "-o", "pipefail", "-c"]diff --git a/ci/docker/ubuntu-18.04-cpp.dockerfile b/ci/docker/ubuntu-18.04-cpp.dockerfileindex f93f59867d..8d3afaa922 100644--- a/ci/docker/ubuntu-18.04-cpp.dockerfile+++ b/ci/docker/ubuntu-18.04-cpp.dockerfile@@ -15,8 +15,8 @@# specific language governing permissions and limitations# under the License.-ARG arch=amd64-FROM ${arch}/ubuntu:18.04+ARG base="amd64/ubuntu:18.04"+FROM ${base}# pipefail is enabled for proper error detection in the `wget | apt-key add`# stepdiff --git a/dev/archery/archery/docker.py b/dev/archery/archery/docker.pyindex e69a261cb3..23448e6daf 100644--- a/dev/archery/archery/docker.py+++ b/dev/archery/archery/docker.py@@ -16,6 +16,8 @@# under the License.import os+import re+import shleximport subprocessfrom io import StringIO@@ -75,10 +77,17 @@ class DockerCompose(Command):config = yaml.load(fp)services = config['services'].keys()- self.nodes = dict(flatten(config['x-hierarchy']))+ self.nodes = dict(flatten(config.get('x-hierarchy', {})))+ self.with_gpus = config.get('x-with-gpus', [])nodes = self.nodes.keys()errors = []+ for name in self.with_gpus:+ if name not in services:+ errors.append(+ 'Service `{}` defined in `x-with-gpus` bot not in '+ '`services`'.format(name)+ )for name in nodes - services:errors.append('Service `{}` is defined in `x-hierarchy` bot not in '@@ -91,8 +100,9 @@ class DockerCompose(Command):)# trigger docker-compose's own validation- result = self._execute('config', check=False, stderr=subprocess.PIPE,- stdout=subprocess.PIPE)+ result = self._execute_compose('config', check=False,+ stderr=subprocess.PIPE,+ stdout=subprocess.PIPE)if result.returncode != 0:# strip the intro line of docker-compose errors@@ -128,7 +138,8 @@ class DockerCompose(Command):if name not in self.nodes:raise UndefinedImage(name)- def _execute(self, *args, **kwargs):+ def _execute_compose(self, *args, **kwargs):+ # execute as a docker compose commandtry:return super().run('--file', str(self.config_path), *args,env=self._compose_env, **kwargs)@@ -152,28 +163,39 @@ class DockerCompose(Command):))+ def _execute_docker(self, *args, **kwargs):+ # execute as a plain docker cli command+ try:+ return Docker().run(*args, **kwargs)+ except subprocess.CalledProcessError as e:+ raise RuntimeError(+ "{} exited with non-zero exit code {}".format(+ ' '.join(e.cmd), e.returncode+ )+ )+def pull(self, image, pull_leaf=True):self._validate_image(image)for ancestor in self.nodes[image]:- self._execute('pull', '--ignore-pull-failures', ancestor)+ self._execute_compose('pull', '--ignore-pull-failures', ancestor)if pull_leaf:- self._execute('pull', '--ignore-pull-failures', image)+ self._execute_compose('pull', '--ignore-pull-failures', image)def build(self, image, use_cache=True, use_leaf_cache=True):self._validate_image(image)for ancestor in self.nodes[image]:if use_cache:- self._execute('build', ancestor)+ self._execute_compose('build', ancestor)else:- self._execute('build', '--no-cache', ancestor)+ self._execute_compose('build', '--no-cache', ancestor)if use_cache and use_leaf_cache:- self._execute('build', image)+ self._execute_compose('build', image)else:- self._execute('build', '--no-cache', image)+ self._execute_compose('build', '--no-cache', image)def run(self, image, command=None, *, env=None, force_pull=False,force_build=False, use_cache=True, use_leaf_cache=True,@@ -200,11 +222,43 @@ class DockerCompose(Command):for volume in volumes:args.extend(['--volume', volume])+ if image in self.with_gpus:+ # rendered compose configuration for the image+ cc = self.config['services'][image]++ # use gpus, requires docker>=19.03+ args.extend(['--gpus', 'all'])++ # append env variables from the compose conf+ for k, v in cc.get('environment', {}).items():+ args.extend(['-e', '{}={}'.format(k, v)])++ # append volumes from the compose conf+ for v in cc.get('volumes', []):+ args.extend(['-v', v])++ # get the actual docker image name instead of the compose service+ # name which we refer as image in general+ args.append(cc['image'])++ # add command from compose if it wasn't overridden+ if command is not None:+ args.append(command)+ else:+ # replace whitespaces from the preformatted compose command+ cmd = shlex.split(cc.get('command', ''))+ cmd = [re.sub(r"\s+", " ", token) for token in cmd]+ if cmd:+ args.extend(cmd)++ # execute as a plain docker cli command+ return self._execute_docker('run', '--rm', '-it', *args)++ # execute as a docker-compose commandargs.append(image)if command is not None:args.append(command)-- self._execute('run', '--rm', *args)+ self._execute_compose('run', '--rm', *args)def push(self, image, user, password):self._validate_image(image)@@ -217,7 +271,7 @@ class DockerCompose(Command):.format(image))raise RuntimeError(msg) from Noneelse:- self._execute('push', image)+ self._execute_compose('push', image)def images(self):return sorted(self.nodes.keys())diff --git a/dev/archery/archery/tests/test_docker.py b/dev/archery/archery/tests/test_docker.pyindex 4b7f7c5efc..f5acfcedb2 100644--- a/dev/archery/archery/tests/test_docker.py+++ b/dev/archery/archery/tests/test_docker.py@@ -114,6 +114,9 @@ services:arrow_compose_yml = """version: '3.5'+x-with-gpus:+ - ubuntu-cuda+x-hierarchy:- conda-cpp:- conda-python:@@ -124,6 +127,7 @@ x-hierarchy:- ubuntu-cpp-cmake32- ubuntu-c-glib:- ubuntu-ruby+ - ubuntu-cudaservices:conda-cpp:@@ -144,6 +148,14 @@ services:image: dummyubuntu-ruby:image: dummy+ ubuntu-cuda:+ image: dummy-cuda+ environment:+ CUDA_ENV: 1+ OTHER_ENV: 2+ volumes:+ - /host:/container+ command: /bin/bash -c "echo 1 > /tmp/dummy && cat /tmp/dummy""""arrow_compose_env = {@@ -197,6 +209,16 @@ def test_config_validation(tmpdir):DockerCompose(config_path) # no issue+def assert_docker_calls(compose, expected_args):+ base_command = ['docker']+ expected_commands = []+ for args in expected_args:+ if isinstance(args, str):+ args = re.split(r"\s", args)+ expected_commands.append(base_command + args)+ return assert_subprocess_calls(expected_commands, check=True)++def assert_compose_calls(compose, expected_args, env=mock.ANY):base_command = ['docker-compose', '--file', str(compose.config_path)]expected_commands = []@@ -480,9 +502,26 @@ def test_compose_error(arrow_compose_path):assert "export PANDAS=master" in exception_message+def test_image_with_gpu(arrow_compose_path):+ compose = DockerCompose(arrow_compose_path)++ expected_calls = [+ [+ "run", "--rm", "-it", "--gpus", "all",+ "-e", "CUDA_ENV=1",+ "-e", "OTHER_ENV=2",+ "-v", "/host:/container:rw",+ "dummy-cuda",+ "/bin/bash", "-c", "echo 1 > /tmp/dummy && cat /tmp/dummy"+ ]+ ]+ with assert_docker_calls(compose, expected_calls):+ compose.run('ubuntu-cuda', force_pull=False, force_build=False)++def test_listing_images(arrow_compose_path):compose = DockerCompose(arrow_compose_path)- assert compose.images() == [+ assert sorted(compose.images()) == ['conda-cpp','conda-python','conda-python-dask',@@ -491,5 +530,6 @@ def test_listing_images(arrow_compose_path):'ubuntu-c-glib','ubuntu-cpp','ubuntu-cpp-cmake32',+ 'ubuntu-cuda','ubuntu-ruby',]diff --git a/docker-compose.yml b/docker-compose.ymlindex f90596b69c..f124f28fb4 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -62,6 +62,11 @@ x-ccache: &ccacheCCACHE_MAXSIZE: 500MCCACHE_DIR: /ccache+x-with-gpus:+ - ubuntu-cuda-cpp+ - ubuntu-cuda-python+ - ubuntu-cuda-docs+x-hierarchy:# This section is used by the archery tool to enable building nested images,# so it is enough to call:@@ -91,8 +96,6 @@ x-hierarchy:- conda-python-kartothek- conda-python-spark- conda-r- - cuda-cpp:- - cuda-python- debian-cpp:- debian-c-glib:- debian-ruby@@ -112,6 +115,9 @@ x-hierarchy:- ubuntu-python:- ubuntu-docs- ubuntu-r+ - ubuntu-cuda-cpp:+ - ubuntu-cuda-python:+ - ubuntu-cuda-docs- ubuntu-csharp- ubuntu-cpp-sanitizer- ubuntu-r-sanitizer@@ -200,34 +206,6 @@ services:volumes: *conda-volumescommand: *cpp-conda-command- cuda-cpp:- # Usage:- # docker-compose build cuda-cpp- # docker-compose run --rm cuda-cpp- # Also need to edit the host docker configuration as follows:- # https://github.com/docker/compose/issues/6691#issuecomment-561504928- # Parameters:- # ARCH: amd64- # CUDA: 9.1, 10.0, 10.1- image: ${REPO}:${ARCH}-cuda-${CUDA}-cpp- build:- context: .- dockerfile: ci/docker/cuda-${CUDA}-cpp.dockerfile- cache_from:- - ${REPO}:${ARCH}-cuda-${CUDA}-cpp- shm_size: *shm-size- ulimits: *ulimits- environment:- <<: *ccache- ARROW_ENABLE_TIMING_TESTS: # inherit- volumes: &cuda-volumes- - .:/arrow:delegated- - ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-cuda-${CUDA}-ccache:/ccache:delegated- command: &cpp-command >- /bin/bash -c "- /arrow/ci/scripts/cpp_build.sh /arrow /build &&- /arrow/ci/scripts/cpp_test.sh /arrow /build"-debian-cpp:# Usage:# docker-compose build debian-cpp@@ -252,7 +230,10 @@ services:volumes: &debian-volumes- .:/arrow:delegated- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-debian-${DEBIAN}-ccache:/ccache:delegated- command: *cpp-command+ command: &cpp-command >+ /bin/bash -c "+ /arrow/ci/scripts/cpp_build.sh /arrow /build &&+ /arrow/ci/scripts/cpp_test.sh /arrow /build"ubuntu-cpp:# Usage:@@ -268,7 +249,7 @@ services:cache_from:- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cppargs:- arch: ${ARCH}+ base: "${ARCH}/ubuntu:${UBUNTU}"clang_tools: ${CLANG_TOOLS}llvm: ${LLVM}shm_size: *shm-size@@ -281,6 +262,33 @@ services:- ${DOCKER_VOLUME_DIRECTORY:-.docker}/${ARCH}-ubuntu-${UBUNTU}-ccache:/ccache:delegatedcommand: *cpp-command+ ubuntu-cuda-cpp:+ # Usage:+ # docker-compose build cuda-cpp+ # docker-compose run --rm cuda-cpp+ # Also need to edit the host docker configuration as follows:+ # https://github.com/docker/compose/issues/6691#issuecomment-561504928+ # Parameters:+ # ARCH: amd64+ # CUDA: 9.1, 10.0, 10.1+ image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-cpp+ build:+ context: .+ dockerfile: ci/docker/ubuntu-${UBUNTU}-cpp.dockerfile+ cache_from:+ - ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-cpp+ args:+ base: nvidia/cuda:10.0-devel-ubuntu${UBUNTU}+ clang_tools: ${CLANG_TOOLS}+ llvm: ${LLVM}+ shm_size: *shm-size+ ulimits: *ulimits+ environment:+ <<: *ccache+ ARROW_CUDA: "ON"+ volumes: *ubuntu-volumes+ command: *cpp-command+ubuntu-cpp-sanitizer:# Usage:# docker-compose build ubuntu-cpp-sanitizer@@ -483,7 +491,7 @@ services:/arrow/ci/scripts/python_build.sh /arrow /build &&/arrow/ci/scripts/python_test.sh /arrow"]- cuda-python:+ ubuntu-cuda-python:# Usage:# docker-compose build cuda-cpp# docker-compose build cuda-python@@ -491,18 +499,19 @@ services:# Parameters:# ARCH: amd64# CUDA: 8.0, 10.0, ...- image: ${REPO}:${ARCH}-cuda-${CUDA}-python-3+ image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-3build:context: .dockerfile: ci/docker/linux-apt-python-3.dockerfilecache_from:- - ${REPO}:${ARCH}-cuda-${CUDA}-python-3+ - ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-3args:- base: ${REPO}:${ARCH}-cuda-${CUDA}-cpp+ base: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-cppshm_size: *shm-sizeenvironment:<<: *ccache- volumes: *cuda-volumes+ ARROW_CUDA: "ON"+ volumes: *ubuntu-volumescommand: &python-command >/bin/bash -c "/arrow/ci/scripts/cpp_build.sh /arrow /build &&@@ -1118,7 +1127,7 @@ services:<<: *ccacheARROW_GLIB_GTK_DOC: "true"volumes: *ubuntu-volumes- command:+ command: &docs-command >/bin/bash -c "/arrow/ci/scripts/cpp_build.sh /arrow /build true &&/arrow/ci/scripts/c_glib_build.sh /arrow /build &&@@ -1128,6 +1137,30 @@ services:/arrow/ci/scripts/r_build.sh /arrow true &&/arrow/ci/scripts/docs_build.sh /arrow /build"+ ubuntu-cuda-docs:+ # Usage:+ # docker-compose build ubuntu-cuda-cpp+ # docker-compose build ubuntu-cuda-python+ # docker-compose build ubuntu-cuda-docs+ # docker-compose run --rm ubuntu-cuda-docs+ # Notes about --runtime and --gpus and docker-compose incompatibility+ image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-3-docs+ build:+ context: .+ dockerfile: ci/docker/linux-apt-docs.dockerfile+ cache_from:+ - ${REPO}:${ARCH}-ubuntu-${UBUNTU}-docs+ args:+ jdk: ${JDK}+ node: ${NODE}+ base: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-3+ environment:+ <<: *ccache+ ARROW_CUDA: "ON"+ ARROW_GLIB_GTK_DOC: "true"+ volumes: *ubuntu-volumes+ command: *docs-command+################################# Tools #####################################ubuntu-lint: