blob: aa19731016b494296524dc59ed67a3ebb1b41dbd [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
Nobuaki Sukegawabf9fa902016-09-04 18:49:21 +090043# optional dependencies
44RUN pip install ipaddress backports.ssl_match_hostname tornado
45
Nobuaki Sukegawa33744b02016-01-03 14:24:39 +090046# CMake
47RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \
Nobuaki Sukegawa7be78ea2016-05-15 00:25:04 +090048 cd cmake-3.4.1 && ./bootstrap && make -j4 && make install && \
49 cd .. && rm -rf cmake-3.4.1
Nobuaki Sukegawa33744b02016-01-03 14:24:39 +090050
51ENV THRIFT_ROOT /thrift
52RUN mkdir -p $THRIFT_ROOT/src
Nobuaki Sukegawa93fb7ea2016-09-04 17:00:11 +090053COPY Dockerfile $THRIFT_ROOT/
Nobuaki Sukegawa33744b02016-01-03 14:24:39 +090054WORKDIR $THRIFT_ROOT/src