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 |
| 18 | # |
| 19 | |
| 20 | FROM centos:6.6 |
| 21 | MAINTAINER Apache Thrift <dev@thrift.apache.org> |
| 22 | |
| 23 | ENV HOME /root |
| 24 | |
| 25 | RUN yum -y update |
| 26 | |
| 27 | # General dependencies |
| 28 | RUN yum -y install -y tar m4 perl gcc git libtool libevent-devel zlib-devel openssl-devel |
| 29 | |
| 30 | RUN mkdir -p /tmp/epel && \ |
| 31 | curl -SL "http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm" -o /tmp/epel/epel-release-6-8.noarch.rpm && \ |
| 32 | cd /tmp/epel && \ |
| 33 | rpm -ivh epel-release-6-8.noarch.rpm && \ |
| 34 | cd $HOME |
| 35 | |
| 36 | # Autoconf |
| 37 | RUN mkdir -p /tmp/autoconf && \ |
| 38 | curl -SL "http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz" | tar -xzC /tmp/autoconf && \ |
| 39 | cd /tmp/autoconf/autoconf-2.69 && \ |
| 40 | ./configure --prefix=/usr && \ |
| 41 | make && \ |
| 42 | make install && \ |
| 43 | cd $HOME |
| 44 | |
| 45 | # Automake |
| 46 | RUN mkdir -p /tmp/automake && \ |
| 47 | curl -SL "http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz" | tar -xzC /tmp/automake && \ |
| 48 | cd /tmp/automake/automake-1.14 && \ |
| 49 | ./configure --prefix=/usr && \ |
| 50 | make && \ |
| 51 | make install && \ |
| 52 | cd $HOME |
| 53 | |
| 54 | # Bison |
| 55 | RUN mkdir -p /tmp/bison && \ |
| 56 | curl -SL "http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz" | tar -xzC /tmp/bison && \ |
| 57 | cd /tmp/bison/bison-2.5.1 && \ |
| 58 | ./configure --prefix=/usr && \ |
| 59 | make && \ |
| 60 | make install && \ |
| 61 | cd $HOME |
| 62 | |
| 63 | # Install an updated Boost library |
| 64 | RUN mkdir -p /tmp/boost && \ |
| 65 | curl -SL "http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz" | tar -xzC /tmp/boost && \ |
| 66 | cd /tmp/boost/boost_1_55_0 && \ |
| 67 | ./bootstrap.sh && \ |
| 68 | ./b2 install && \ |
| 69 | cd $HOME |
| 70 | |
| 71 | # Java Dependencies |
| 72 | RUN yum install -y ant junit ant-nodeps ant-junit java-1.7.0-openjdk-devel |
| 73 | |
| 74 | # Python Dependencies |
| 75 | RUN yum install -y python-devel python-setuptools python-twisted |
| 76 | |
| 77 | # Ruby Dependencies |
| 78 | RUN yum install -y ruby ruby-devel rubygems && \ |
| 79 | gem install bundler rake |
| 80 | |
| 81 | # Node.js Dependencies |
| 82 | RUN yum install -y nodejs nodejs-devel npm |
| 83 | |
| 84 | # Perl Dependencies |
| 85 | RUN yum install -y perl-Bit-Vector perl-Class-Accessor perl-ExtUtils-MakeMaker perl-Test-Simple |
| 86 | |
| 87 | # PHP Dependencies |
| 88 | RUN yum install -y php php-devel php-pear re2c |
| 89 | |
| 90 | # GLibC Dependencies |
| 91 | RUN yum install -y glib2-devel |
| 92 | |
| 93 | # Erlang Dependencies |
| 94 | RUN yum install -y erlang-kernel erlang-erts erlang-stdlib erlang-eunit erlang-rebar |
| 95 | |
| 96 | # Lua Dependencies |
| 97 | RUN yum install -y lua-devel |
| 98 | |
| 99 | # Go Dependencies |
| 100 | RUN yum install -y golang golang-pkg-linux-amd64 |
| 101 | |
| 102 | # C# Dependencies |
| 103 | RUN yum install -y mono-core mono-devel mono-web-devel mono-extras mingw32-binutils mingw32-runtime mingw32-nsis |
| 104 | |
| 105 | # Haskell Dependencies |
| 106 | RUN mkdir -p /tmp/haskell &&\ |
| 107 | curl -SL "http://sherkin.justhub.org/el6/RPMS/x86_64/justhub-release-2.0-4.0.el6.x86_64.rpm" -o /tmp/haskell/justhub-release-2.0-4.0.el6.x86_64.rpm && \ |
| 108 | cd /tmp/haskell && \ |
| 109 | rpm -ivh justhub-release-2.0-4.0.el6.x86_64.rpm && \ |
| 110 | yum -y install haskell && \ |
| 111 | cabal update && \ |
| 112 | cabal install cabal-install && \ |
| 113 | cd $HOME |
| 114 | |
| 115 | # Clean up |
| 116 | RUN rm -rf /tmp/* |
| 117 | |
| 118 | WORKDIR $HOME |