jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [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 |
| 14 | # |
| 15 | # Known missing client libraries: |
| 16 | # - D |
| 17 | # - Haxe |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 18 | # - Lua |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 19 | # |
| 20 | |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 21 | FROM centos:7 |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 22 | MAINTAINER Apache Thrift <dev@thrift.apache.org> |
| 23 | |
| 24 | ENV HOME /root |
| 25 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 26 | # General dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 27 | RUN yum install -y tar m4 perl gcc gcc-c++ git libtool zlib-devel openssl-devel autoconf make bison bison-devel flex epel-release |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 28 | |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 29 | # C++ dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 30 | RUN yum install -y boost-devel-static libevent-devel |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 31 | |
| 32 | # Java Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 33 | RUN yum install -y ant junit ant-junit java-1.7.0-openjdk-devel |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 34 | |
| 35 | # Python Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 36 | RUN yum install -y python-devel python-setuptools python-twisted-web python-six |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 37 | |
| 38 | # Ruby Dependencies |
| 39 | RUN yum install -y ruby ruby-devel rubygems && \ |
| 40 | gem install bundler rake |
| 41 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 42 | # Perl Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 43 | RUN yum install -y perl-Bit-Vector perl-Class-Accessor perl-ExtUtils-MakeMaker perl-Test-Simple \ |
| 44 | perl-IO-Socket-SSL perl-Net-SSLeay perl-Crypt-SSLeay |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 45 | |
| 46 | # PHP Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 47 | RUN yum install -y php php-devel php-pear re2c php-phpunit-PHPUnit bzip2 |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 48 | |
| 49 | # GLibC Dependencies |
| 50 | RUN yum install -y glib2-devel |
| 51 | |
| 52 | # Erlang Dependencies |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 53 | RUN curl -sSL http://packages.erlang-solutions.com/rpm/centos/erlang_solutions.repo -o /etc/yum.repos.d/erlang_solutions.repo && \ |
Nobuaki Sukegawa | 826ea99 | 2015-10-28 22:19:45 +0900 | [diff] [blame] | 54 | yum install -y erlang-kernel erlang-erts erlang-stdlib erlang-eunit erlang-rebar erlang-tools |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 55 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 56 | # Go Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 57 | RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz |
| 58 | ENV PATH /usr/local/go/bin:$PATH |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 59 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 60 | # Haskell Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 61 | RUN yum -y install haskell-platform |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 62 | |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 63 | # Node.js Dependencies |
| 64 | RUN yum install -y nodejs nodejs-devel npm |
| 65 | |
| 66 | # C# Dependencies |
Nobuaki Sukegawa | a8c74d5 | 2015-11-10 16:37:52 +0900 | [diff] [blame^] | 67 | RUN yum install -y mono-core mono-devel mono-web-devel mono-extras mingw32-binutils mingw32-crt mingw32-nsis |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 68 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 69 | # Clean up |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 70 | RUN rm -rf /tmp/* && \ |
| 71 | yum clean all |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 72 | |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 73 | WORKDIR $HOME |