|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +FROM nvidia/cuda:9.1-devel-ubuntu16.04 |
| 19 | + |
| 20 | +# pipefail is enabled for proper error detection in the `wget | apt-key add` |
| 21 | +# step |
| 22 | +SHELL ["/bin/bash", "-o", "pipefail", "-c"] |
| 23 | + |
| 24 | +ENV DEBIAN_FRONTEND=noninteractive |
| 25 | + |
| 26 | +RUN apt-get update -y -q && \ |
| 27 | + apt-get install -y -q --no-install-recommends \ |
| 28 | + wget software-properties-common && \ |
| 29 | + apt-get clean && rm -rf /var/lib/apt/lists* |
| 30 | + |
| 31 | +# Installs C++ toolchain and dependencies |
| 32 | +RUN apt-get update -y -q && \ |
| 33 | + apt-get install -y -q --no-install-recommends \ |
| 34 | + autoconf \ |
| 35 | + bison \ |
| 36 | + ca-certificates \ |
| 37 | + ccache \ |
| 38 | + cmake \ |
| 39 | + flex \ |
| 40 | + g++ \ |
| 41 | + gcc \ |
| 42 | + git \ |
| 43 | + libboost-filesystem-dev \ |
| 44 | + libboost-regex-dev \ |
| 45 | + libboost-system-dev \ |
| 46 | + libbrotli-dev \ |
| 47 | + libbz2-dev \ |
| 48 | + libgflags-dev \ |
| 49 | + libgoogle-glog-dev \ |
| 50 | + liblz4-dev \ |
| 51 | + liblzma-dev \ |
| 52 | + libprotobuf-dev \ |
| 53 | + libprotoc-dev \ |
| 54 | + libre2-dev \ |
| 55 | + libsnappy-dev \ |
| 56 | + libssl-dev \ |
| 57 | + libzstd-dev \ |
| 58 | + ninja-build \ |
| 59 | + pkg-config \ |
| 60 | + protobuf-compiler \ |
| 61 | + python-minimal \ |
| 62 | + rapidjson-dev \ |
| 63 | + thrift-compiler \ |
| 64 | + tzdata && \ |
| 65 | + apt-get clean && rm -rf /var/lib/apt/lists* |
| 66 | + |
| 67 | +# Prioritize system packages and local installation |
| 68 | +# The following dependencies will be downloaded due to missing/invalid packages |
| 69 | +# provided by the distribution: |
| 70 | +# - libc-ares-dev does not install CMake config files |
| 71 | +# - flatbuffer is not packaged |
| 72 | +# - libgtest-dev only provide sources |
| 73 | +# - libprotobuf-dev only provide sources |
| 74 | +# - thrift is too old |
| 75 | +ENV ARROW_BUILD_STATIC=OFF \ |
| 76 | + ARROW_BUILD_TESTS=ON \ |
| 77 | + ARROW_COMPUTE=OFF \ |
| 78 | + ARROW_CSV=OFF \ |
| 79 | + ARROW_CUDA=ON \ |
| 80 | + ARROW_DATASET=OFF \ |
| 81 | + ARROW_DEPENDENCY_SOURCE=SYSTEM \ |
| 82 | + ARROW_FILESYSTEM=OFF \ |
| 83 | + ARROW_FLIGHT=OFF \ |
| 84 | + ARROW_HOME=/usr/local \ |
| 85 | + ARROW_INSTALL_NAME_RPATH=OFF \ |
| 86 | + ARROW_NO_DEPRECATED_API=ON \ |
| 87 | + ARROW_PLASMA=ON \ |
| 88 | + ARROW_USE_CCACHE=ON \ |
| 89 | + GTest_SOURCE=BUNDLED \ |
| 90 | + ORC_SOURCE=BUNDLED \ |
| 91 | + PATH=/usr/lib/ccache/:$PATH \ |
| 92 | + Thrift_SOURCE=BUNDLED |
0 commit comments