Nobuaki Sukegawa | 33744b0 | 2016-01-03 14:24:39 +0900 | [diff] [blame] | 1 | # 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 | |
| 19 | FROM centos:6 |
| 20 | MAINTAINER Apache Thrift <dev@thrift.apache.org> |
| 21 | |
Nobuaki Sukegawa | ed23b2b | 2016-02-28 13:47:44 +0900 | [diff] [blame^] | 22 | RUN yum install -y epel-release && \ |
| 23 | yum install -y \ |
Nobuaki Sukegawa | 33744b0 | 2016-01-03 14:24:39 +0900 | [diff] [blame] | 24 | 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 Sukegawa | ed23b2b | 2016-02-28 13:47:44 +0900 | [diff] [blame^] | 40 | python-pip \ |
Nobuaki Sukegawa | 33744b0 | 2016-01-03 14:24:39 +0900 | [diff] [blame] | 41 | && yum clean all |
| 42 | |
| 43 | # CMake |
| 44 | RUN 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 | |
| 47 | ENV THRIFT_ROOT /thrift |
| 48 | RUN mkdir -p $THRIFT_ROOT/src |
| 49 | COPY scripts $THRIFT_ROOT |
| 50 | WORKDIR $THRIFT_ROOT/src |