blob: 95601db726db3a8cd93574d0bdd7b4017f89f9d7 [file] [log] [blame]
jfarrelle03f7e82015-02-18 23:25:54 -05001# 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
jfarrell763841b2015-06-24 09:11:54 -040018# - Lua
jfarrelle03f7e82015-02-18 23:25:54 -050019#
20
jfarrell763841b2015-06-24 09:11:54 -040021FROM centos:7
jfarrelle03f7e82015-02-18 23:25:54 -050022MAINTAINER Apache Thrift <dev@thrift.apache.org>
23
24ENV HOME /root
25
jfarrelle03f7e82015-02-18 23:25:54 -050026# General dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090027RUN yum install -y tar m4 perl gcc gcc-c++ git libtool zlib-devel openssl-devel autoconf make bison bison-devel flex epel-release
jfarrelle03f7e82015-02-18 23:25:54 -050028
jfarrell763841b2015-06-24 09:11:54 -040029# C++ dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090030RUN yum install -y boost-devel-static libevent-devel
jfarrelle03f7e82015-02-18 23:25:54 -050031
32# Java Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090033RUN yum install -y ant junit ant-junit java-1.7.0-openjdk-devel
jfarrelle03f7e82015-02-18 23:25:54 -050034
35# Python Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090036RUN yum install -y python-devel python-setuptools python-twisted-web python-six
jfarrelle03f7e82015-02-18 23:25:54 -050037
38# Ruby Dependencies
39RUN yum install -y ruby ruby-devel rubygems && \
40 gem install bundler rake
41
jfarrelle03f7e82015-02-18 23:25:54 -050042# Perl Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090043RUN 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
jfarrelle03f7e82015-02-18 23:25:54 -050045
46# PHP Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090047RUN yum install -y php php-devel php-pear re2c php-phpunit-PHPUnit bzip2
jfarrelle03f7e82015-02-18 23:25:54 -050048
49# GLibC Dependencies
50RUN yum install -y glib2-devel
51
52# Erlang Dependencies
jfarrellb2e90c12015-07-27 08:49:53 -040053RUN curl -sSL http://packages.erlang-solutions.com/rpm/centos/erlang_solutions.repo -o /etc/yum.repos.d/erlang_solutions.repo && \
Nobuaki Sukegawa826ea992015-10-28 22:19:45 +090054 yum install -y erlang-kernel erlang-erts erlang-stdlib erlang-eunit erlang-rebar erlang-tools
jfarrelle03f7e82015-02-18 23:25:54 -050055
jfarrelle03f7e82015-02-18 23:25:54 -050056# Go Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090057RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz
58ENV PATH /usr/local/go/bin:$PATH
jfarrelle03f7e82015-02-18 23:25:54 -050059
jfarrelle03f7e82015-02-18 23:25:54 -050060# Haskell Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090061RUN yum -y install haskell-platform
jfarrelle03f7e82015-02-18 23:25:54 -050062
jfarrellb2e90c12015-07-27 08:49:53 -040063# Node.js Dependencies
64RUN yum install -y nodejs nodejs-devel npm
65
66# C# Dependencies
Nobuaki Sukegawaa8c74d52015-11-10 16:37:52 +090067RUN yum install -y mono-core mono-devel mono-web-devel mono-extras mingw32-binutils mingw32-crt mingw32-nsis
jfarrellb2e90c12015-07-27 08:49:53 -040068
jfarrelle03f7e82015-02-18 23:25:54 -050069# Clean up
jfarrell763841b2015-06-24 09:11:54 -040070RUN rm -rf /tmp/* && \
71 yum clean all
jfarrelle03f7e82015-02-18 23:25:54 -050072
jfarrellb2e90c12015-07-27 08:49:53 -040073WORKDIR $HOME