blob: c4c273cf90a06d10630c2afeb7183f290e0b03d1 [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
jfarrellb2e90c12015-07-27 08:49:53 -040026# RUN yum -y update
jfarrelle03f7e82015-02-18 23:25:54 -050027
28# General dependencies
jfarrell763841b2015-06-24 09:11:54 -040029RUN yum -y install -y tar m4 perl gcc git libtool zlib-devel openssl-devel autoconf make bison bison-devel flex
jfarrelle03f7e82015-02-18 23:25:54 -050030
31RUN mkdir -p /tmp/epel && \
jfarrell763841b2015-06-24 09:11:54 -040032 curl -sSL "http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm" -o /tmp/epel/epel-release-7-5.noarch.rpm && \
jfarrelle03f7e82015-02-18 23:25:54 -050033 cd /tmp/epel && \
jfarrell763841b2015-06-24 09:11:54 -040034 rpm -ivh epel-release*.rpm && \
jfarrelle03f7e82015-02-18 23:25:54 -050035 cd $HOME
36
37# Automake
38RUN mkdir -p /tmp/automake && \
39 curl -SL "http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz" | tar -xzC /tmp/automake && \
40 cd /tmp/automake/automake-1.14 && \
41 ./configure --prefix=/usr && \
42 make && \
43 make install && \
44 cd $HOME
45
jfarrell763841b2015-06-24 09:11:54 -040046# C++ dependencies
47RUN yum install -y libboost-dev libevent-devel
jfarrelle03f7e82015-02-18 23:25:54 -050048
49# Java Dependencies
50RUN yum install -y ant junit ant-nodeps ant-junit java-1.7.0-openjdk-devel
51
52# Python Dependencies
53RUN yum install -y python-devel python-setuptools python-twisted
54
55# Ruby Dependencies
56RUN yum install -y ruby ruby-devel rubygems && \
57 gem install bundler rake
58
jfarrelle03f7e82015-02-18 23:25:54 -050059# Perl Dependencies
60RUN yum install -y perl-Bit-Vector perl-Class-Accessor perl-ExtUtils-MakeMaker perl-Test-Simple
61
62# PHP Dependencies
63RUN yum install -y php php-devel php-pear re2c
64
65# GLibC Dependencies
66RUN yum install -y glib2-devel
67
68# Erlang Dependencies
jfarrellb2e90c12015-07-27 08:49:53 -040069RUN curl -sSL http://packages.erlang-solutions.com/rpm/centos/erlang_solutions.repo -o /etc/yum.repos.d/erlang_solutions.repo && \
70 yum install -y erlang-kernel erlang-erts erlang-stdlib erlang-eunit erlang-rebar
jfarrelle03f7e82015-02-18 23:25:54 -050071
jfarrelle03f7e82015-02-18 23:25:54 -050072# Go Dependencies
jfarrell763841b2015-06-24 09:11:54 -040073RUN curl -sSL https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar -C /usr/lib/ -xz && \
74 mkdir -p /usr/share/go
75
76ENV GOROOT /usr/lib/go
77ENV GOPATH /usr/share/go
78ENV PATH ${GOROOT}/bin:${GOPATH}/bin:$PATH
jfarrelle03f7e82015-02-18 23:25:54 -050079
jfarrelle03f7e82015-02-18 23:25:54 -050080# Haskell Dependencies
jfarrell763841b2015-06-24 09:11:54 -040081RUN yum -y install cabal-dev && \
jfarrelle03f7e82015-02-18 23:25:54 -050082 cabal update && \
83 cabal install cabal-install && \
84 cd $HOME
85
jfarrellb2e90c12015-07-27 08:49:53 -040086# Node.js Dependencies
87RUN yum install -y nodejs nodejs-devel npm
88
89# C# Dependencies
90RUN yum install -y mono-core mono-devel mono-web-devel mono-extras mingw32-binutils mingw32-runtime mingw32-nsis
91
jfarrelle03f7e82015-02-18 23:25:54 -050092# Clean up
jfarrell763841b2015-06-24 09:11:54 -040093RUN rm -rf /tmp/* && \
94 yum clean all
jfarrelle03f7e82015-02-18 23:25:54 -050095
jfarrellb2e90c12015-07-27 08:49:53 -040096WORKDIR $HOME