|
| 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, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +# Dockerfile for installing the necessary dependencies for building Avro. |
| 18 | +# See BUILD.txt. |
| 19 | + |
| 20 | +FROM java:8-jdk |
| 21 | + |
| 22 | +RUN apt-get update -qq && \ |
| 23 | + apt-get install -qq build-essential pv autoconf automake libtool curl make \ |
| 24 | + g++ unzip libboost-dev libboost-test-dev libboost-program-options-dev \ |
| 25 | + libevent-dev automake libtool flex bison pkg-config g++ libssl-dev xmlstarlet \ |
| 26 | + apt-get clean |
| 27 | + |
| 28 | +RUN wget -nv http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz && \ |
| 29 | + tar zxf thrift-0.9.3.tar.gz && \ |
| 30 | + cd thrift-0.9.3 && \ |
| 31 | + chmod +x ./configure && \ |
| 32 | + ./configure --disable-gen-erl --disable-gen-hs --without-ruby --without-haskell \ |
| 33 | + --without-erlang --without-php --without-nodejs && \ |
| 34 | + make install |
| 35 | + |
| 36 | +ADD . /parquet/ |
| 37 | + |
| 38 | +WORKDIR /parquet/ |
| 39 | + |
| 40 | +RUN mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true -Dsource.skip=true |
0 commit comments