blob: 33d5dad8e92fa8c43b59ae0fe16389ca28eeeca8 [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
Nobuaki Sukegawaed23b2b2016-02-28 13:47:44 +090022RUN yum install -y epel-release && \
23 yum install -y \
Nobuaki Sukegawa33744b02016-01-03 14:24:39 +090024 autoconf \
25 bison \
26 bison-devel \
27 clang \
28 flex \
29 gcc \
30 gcc-c++ \
31 git \
32 libtool \
33 m4 \
34 make \
35 perl \
36 tar \
37 python-devel \
38 python-setuptools \
39 python-twisted-web \
Nobuaki Sukegawaed23b2b2016-02-28 13:47:44 +090040 python-pip \
Nobuaki Sukegawa33744b02016-01-03 14:24:39 +090041 && yum clean all
42
43# CMake
44RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \
45 cd cmake-3.4.1 && ./bootstrap && make -j4 && make install
46
47ENV THRIFT_ROOT /thrift
48RUN mkdir -p $THRIFT_ROOT/src
49COPY scripts $THRIFT_ROOT
50WORKDIR $THRIFT_ROOT/src