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 | # - None |
| 17 | |
| 18 | FROM ubuntu:trusty |
| 19 | MAINTAINER Apache Thrift <dev@thrift.apache.org> |
| 20 | |
| 21 | ENV HOME /root |
| 22 | ENV DEBIAN_FRONTEND noninteractive |
| 23 | |
| 24 | RUN apt-get update -y && apt-get dist-upgrade -y |
| 25 | |
| 26 | # General dependencies |
| 27 | RUN apt-get install -y automake libtool flex bison pkg-config g++ libssl-dev make libqt4-dev git \ |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 28 | debhelper cmake |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 29 | |
| 30 | # C++ dependencies |
| 31 | RUN apt-get install -y libboost-dev libboost-test-dev libboost-program-options-dev \ |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 32 | libboost-filesystem-dev libboost-system-dev libboost-thread-dev libevent-dev |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 33 | |
| 34 | # Java dependencies |
| 35 | RUN apt-get install -y ant openjdk-7-jdk maven && \ |
| 36 | update-java-alternatives -s java-1.7.0-openjdk-amd64 |
| 37 | |
| 38 | # Python dependencies |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 39 | RUN apt-get install -y python-all python-all-dev python-all-dbg python-setuptools python-support \ |
Nobuaki Sukegawa | 760511f | 2015-11-06 21:24:16 +0900 | [diff] [blame^] | 40 | python-twisted python-zope.interface python-six |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 41 | |
| 42 | # Ruby dependencies |
| 43 | RUN apt-get install -y ruby ruby-dev && \ |
| 44 | gem install bundler rake |
| 45 | |
| 46 | # Perl dependencies |
| 47 | RUN apt-get install -y libbit-vector-perl libclass-accessor-class-perl |
| 48 | |
| 49 | # Php dependencies |
| 50 | RUN apt-get install -y php5 php5-dev php5-cli php-pear re2c phpunit |
| 51 | |
| 52 | # GlibC dependencies |
| 53 | RUN apt-get install -y libglib2.0-dev |
| 54 | |
| 55 | # Erlang dependencies |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 56 | RUN echo 'deb http://packages.erlang-solutions.com/debian trusty contrib' > /etc/apt/sources.list.d/erlang_solutions.list && \ |
| 57 | curl -sSL http://packages.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add - && \ |
| 58 | apt-get update && \ |
Nobuaki Sukegawa | 826ea99 | 2015-10-28 22:19:45 +0900 | [diff] [blame] | 59 | apt-get install -y erlang-base erlang-eunit erlang-dev erlang-tools |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 60 | |
| 61 | # GO dependencies |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 62 | RUN curl -sSL https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar -C /usr/lib/ -xz && \ |
| 63 | mkdir -p /usr/share/go |
| 64 | |
| 65 | ENV GOROOT /usr/lib/go |
| 66 | ENV GOPATH /usr/share/go |
| 67 | ENV PATH ${GOROOT}/bin:${GOPATH}/bin:$PATH |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 68 | |
| 69 | # Haskell dependencies |
| 70 | RUN apt-get install -y ghc cabal-install libghc-binary-dev libghc-network-dev libghc-http-dev \ |
| 71 | libghc-hashable-dev libghc-unordered-containers-dev libghc-vector-dev && \ |
| 72 | cabal update |
| 73 | |
| 74 | # Haxe |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 75 | RUN apt-get install -y neko neko-dev libneko0 && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 76 | mkdir -p /tmp/haxe /usr/lib/haxe && \ |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 77 | curl http://haxe.org/website-content/downloads/3.2.0/downloads/haxe-3.2.0-linux64.tar.gz -o /tmp/haxe/haxe-3.2.0-linux64.tar.gz && \ |
| 78 | tar -xvzf /tmp/haxe/haxe-3.2.0-linux64.tar.gz -C /usr/lib/haxe --strip-components=1 && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 79 | ln -s /usr/lib/haxe/haxe /usr/bin/haxe && \ |
| 80 | ln -s /usr/lib/haxe/haxelib /usr/bin/haxelib && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 81 | mkdir -p /usr/lib/haxe/lib && \ |
| 82 | chmod -R 777 /usr/lib/haxe/lib && \ |
| 83 | haxelib setup /usr/lib/haxe/lib && \ |
| 84 | haxelib install hxcpp |
| 85 | |
| 86 | # Lua dependencies |
| 87 | RUN apt-get install -y lua5.2 lua5.2-dev |
| 88 | |
| 89 | # Node.js dependencies |
| 90 | RUN apt-get install -y nodejs nodejs-dev nodejs-legacy npm |
| 91 | |
| 92 | # CSharp |
| 93 | RUN apt-get install -y mono-gmcs mono-devel mono-xbuild mono-complete libmono-system-web2.0-cil \ |
| 94 | mingw32 mingw32-binutils mingw32-runtime nsis |
| 95 | |
| 96 | # D dependencies |
| 97 | # THRIFT-2916: DMD pinned to 2.065.0-0 due to regression in 2.066 |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 98 | # THRIFT-3253: DMD pinned to 2.065.0-0 due to deprecations 2.067.1 |
| 99 | RUN apt-get install -y gcc-multilib xdg-utils && \ |
| 100 | curl -sSL http://downloads.dlang.org/releases/2.x/2.065.0/dmd_2.065.0-0_amd64.deb -o /tmp/dmd_2.065.0-0_amd64.deb && \ |
| 101 | dpkg -i /tmp/dmd_2.065.0-0_amd64.deb && \ |
| 102 | rm /tmp/dmd_2.065.0-0_amd64.deb |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 103 | |
| 104 | # Clean up |
| 105 | RUN apt-get clean && \ |
| 106 | rm -rf /var/cache/apt/* && \ |
| 107 | rm -rf /var/lib/apt/lists/* && \ |
| 108 | rm -rf /tmp/* && \ |
| 109 | rm -rf /var/tmp/* |
| 110 | |
| 111 | WORKDIR $HOME |