|
| 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 ubuntu:22.04 |
| 19 | + |
| 20 | +ENV TZ=Asia/Shanghai |
| 21 | +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| 22 | + |
| 23 | +RUN apt-get update -y; \ |
| 24 | + apt-get install -y --no-install-recommends \ |
| 25 | + automake \ |
| 26 | + build-essential \ |
| 27 | + bison \ |
| 28 | + flex \ |
| 29 | + g++ \ |
| 30 | + libboost-dev \ |
| 31 | + libevent-dev \ |
| 32 | + libssl-dev \ |
| 33 | + libtool \ |
| 34 | + make \ |
| 35 | + pkg-config \ |
| 36 | + ca-certificates \ |
| 37 | + wget \ |
| 38 | + unzip; \ |
| 39 | + rm -rf /var/lib/apt/lists/* |
| 40 | + |
| 41 | +ARG THRIFT_VERSION=0.13.0 |
| 42 | +RUN wget --progress=dot:giga https://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz -P /opt/thrift && \ |
| 43 | + cd /opt/thrift && tar xzf thrift-${THRIFT_VERSION}.tar.gz && cd thrift-${THRIFT_VERSION} && ./bootstrap.sh && \ |
| 44 | + ./configure --enable-libs=no && \ |
| 45 | + make -j$(($(nproc)/2+1)) && make install && cd - && \ |
| 46 | + rm -rf thrift-${THRIFT_VERSION} thrift-${THRIFT_VERSION}.tar.gz |
0 commit comments