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 | |
Nobuaki Sukegawa | bf9fa90 | 2016-09-04 18:49:21 +0900 | [diff] [blame] | 43 | # optional dependencies |
Nobuaki Sukegawa | e8ba787 | 2017-02-12 21:14:48 +0900 | [diff] [blame] | 44 | # skipping ipaddress and backports.ssl_match_hostname to test legacy callback |
| 45 | # RUN pip install ipaddress backports.ssl_match_hostname tornado |
| 46 | RUN pip install tornado |
Nobuaki Sukegawa | bf9fa90 | 2016-09-04 18:49:21 +0900 | [diff] [blame] | 47 | |
Nobuaki Sukegawa | 33744b0 | 2016-01-03 14:24:39 +0900 | [diff] [blame] | 48 | # CMake |
| 49 | RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \ |
Nobuaki Sukegawa | 7be78ea | 2016-05-15 00:25:04 +0900 | [diff] [blame] | 50 | cd cmake-3.4.1 && ./bootstrap && make -j4 && make install && \ |
| 51 | cd .. && rm -rf cmake-3.4.1 |
Nobuaki Sukegawa | 33744b0 | 2016-01-03 14:24:39 +0900 | [diff] [blame] | 52 | |
| 53 | ENV THRIFT_ROOT /thrift |
| 54 | RUN mkdir -p $THRIFT_ROOT/src |
Nobuaki Sukegawa | 93fb7ea | 2016-09-04 17:00:11 +0900 | [diff] [blame] | 55 | COPY Dockerfile $THRIFT_ROOT/ |
Nobuaki Sukegawa | 33744b0 | 2016-01-03 14:24:39 +0900 | [diff] [blame] | 56 | WORKDIR $THRIFT_ROOT/src |