blob: 0e571c5489a6e538e2d72411e9eca63dc4674ec6 [file] [log] [blame]
Nobuaki Sukegawa33744b02016-01-03 14:24:39 +09001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10# See the License for the specific language governing permissions and
11# limitations under the License.
12
13# Apache Thrift Docker build environment for Centos 6
14#
15# This file is intended for testing old packages that are not available for
16# latest Ubuntu LTS/Debian/CentOS. Currently, it is only used for Python 2.6.
17#
18
19FROM centos:6
20MAINTAINER Apache Thrift <dev@thrift.apache.org>
21
22RUN yum install -y \
23 autoconf \
24 bison \
25 bison-devel \
26 clang \
27 flex \
28 gcc \
29 gcc-c++ \
30 git \
31 libtool \
32 m4 \
33 make \
34 perl \
35 tar \
36 python-devel \
37 python-setuptools \
38 python-twisted-web \
39 python-six \
40 && yum clean all
41
42# CMake
43RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \
44 cd cmake-3.4.1 && ./bootstrap && make -j4 && make install
45
46ENV THRIFT_ROOT /thrift
47RUN mkdir -p $THRIFT_ROOT/src
48COPY scripts $THRIFT_ROOT
49WORKDIR $THRIFT_ROOT/src