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 | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 26 | # RUN yum -y update |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 27 | |
| 28 | # General dependencies |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 29 | RUN yum -y install -y tar m4 perl gcc git libtool zlib-devel openssl-devel autoconf make bison bison-devel flex |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 30 | |
| 31 | RUN mkdir -p /tmp/epel && \ |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 32 | 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 && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 33 | cd /tmp/epel && \ |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 34 | rpm -ivh epel-release*.rpm && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 35 | cd $HOME |
| 36 | |
| 37 | # Automake |
| 38 | RUN 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 | |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 46 | # C++ dependencies |
| 47 | RUN yum install -y libboost-dev libevent-devel |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 48 | |
| 49 | # Java Dependencies |
| 50 | RUN yum install -y ant junit ant-nodeps ant-junit java-1.7.0-openjdk-devel |
| 51 | |
| 52 | # Python Dependencies |
| 53 | RUN yum install -y python-devel python-setuptools python-twisted |
| 54 | |
| 55 | # Ruby Dependencies |
| 56 | RUN yum install -y ruby ruby-devel rubygems && \ |
| 57 | gem install bundler rake |
| 58 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 59 | # Perl Dependencies |
| 60 | RUN yum install -y perl-Bit-Vector perl-Class-Accessor perl-ExtUtils-MakeMaker perl-Test-Simple |
| 61 | |
| 62 | # PHP Dependencies |
| 63 | RUN yum install -y php php-devel php-pear re2c |
| 64 | |
| 65 | # GLibC Dependencies |
| 66 | RUN yum install -y glib2-devel |
| 67 | |
| 68 | # Erlang Dependencies |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 69 | 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^] | 70 | 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] | 71 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 72 | # Go Dependencies |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 73 | RUN 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 | |
| 76 | ENV GOROOT /usr/lib/go |
| 77 | ENV GOPATH /usr/share/go |
| 78 | ENV PATH ${GOROOT}/bin:${GOPATH}/bin:$PATH |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 79 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 80 | # Haskell Dependencies |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 81 | RUN yum -y install cabal-dev && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 82 | cabal update && \ |
| 83 | cabal install cabal-install && \ |
| 84 | cd $HOME |
| 85 | |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 86 | # Node.js Dependencies |
| 87 | RUN yum install -y nodejs nodejs-devel npm |
| 88 | |
| 89 | # C# Dependencies |
| 90 | RUN yum install -y mono-core mono-devel mono-web-devel mono-extras mingw32-binutils mingw32-runtime mingw32-nsis |
| 91 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 92 | # Clean up |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 93 | RUN rm -rf /tmp/* && \ |
| 94 | yum clean all |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 95 | |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 96 | WORKDIR $HOME |