forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu-bionic
88 lines (83 loc) · 2.92 KB
/
Dockerfile.ubuntu-bionic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# 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 ubuntu:bionic
# install build essentials
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update -y -q && \
apt-get install -y wget software-properties-common
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN apt-add-repository -y "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main"
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
autoconf \
bison \
ca-certificates \
ccache \
clang-7 \
cmake \
flex \
g++ \
gcc \
git \
libbenchmark-dev \
libboost-all-dev \
libbrotli-dev \
libbz2-dev \
libc-ares-dev \
libdouble-conversion-dev \
libgflags-dev \
libgoogle-glog-dev \
libgrpc-dev \
libgrpc++-dev \
liblz4-dev \
libprotoc-dev \
libprotobuf-dev \
libre2-dev \
libsnappy-dev \
libssl-dev \
libzstd-dev \
llvm-7-dev \
make \
ninja-build \
pkg-config \
protobuf-compiler \
protobuf-compiler-grpc \
rapidjson-dev \
tzdata
# Ubuntu's gtest just provides sources, the compiled version is only available
# from Ubuntu Cosmic on.
# ARROW_GANDIVA_JAVA requires CMake 3.11
# TODO: gRPC is too old on Bionic and c-ares CMake config is not installed thus
# we need to build both from source.
# protobuf does not come with PHP but grpc needs it to built, thus also
# built Protobuf from source: https://github.com/grpc/grpc/issues/15949
ENV CC=gcc \
CXX=g++ \
ARROW_BUILD_BENCHMARKS=ON \
ARROW_BUILD_TESTS=ON \
ARROW_DEPENDENCY_SOURCE=SYSTEM \
ARROW_FLIGHT=ON \
ARROW_GANDIVA=ON \
ARROW_GANDIVA_JAVA=OFF \
ARROW_PARQUET=ON \
ARROW_HOME=/usr \
ARROW_WITH_ZSTD=ON \
CMAKE_ARGS="-DThrift_SOURCE=BUNDLED -DFlatbuffers_SOURCE=BUNDLED -DGTest_SOURCE=BUNDLED -DgRPC_SOURCE=BUNDLED -Dc-ares_SOURCE=BUNDLED -DProtobuf_SOURCE=BUNDLED"
# build and test
CMD arrow/ci/docker_build_cpp.sh && \
cd /build/cpp && ctest -j2 --output-on-failure -L unittest