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 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 21 | ENV DEBIAN_FRONTEND noninteractive |
| 22 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 23 | # General dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 24 | RUN apt-get update && apt-get install -y \ |
| 25 | apt-transport-https \ |
| 26 | automake \ |
| 27 | bison \ |
| 28 | clang \ |
| 29 | cmake \ |
| 30 | debhelper \ |
| 31 | flex \ |
| 32 | g++ \ |
| 33 | git \ |
| 34 | libtool \ |
| 35 | make \ |
| 36 | pkg-config |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 37 | |
| 38 | # C++ dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 39 | RUN apt-get update && apt-get install -y \ |
| 40 | libboost-dev \ |
| 41 | libboost-filesystem-dev \ |
| 42 | libboost-program-options-dev \ |
| 43 | libboost-system-dev \ |
| 44 | libboost-test-dev \ |
| 45 | libboost-thread-dev \ |
| 46 | libevent-dev \ |
| 47 | libqt4-dev \ |
| 48 | libssl-dev |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 49 | |
| 50 | # Java dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 51 | RUN apt-get update && apt-get install -y \ |
| 52 | ant \ |
| 53 | openjdk-7-jdk \ |
| 54 | maven \ |
| 55 | && update-java-alternatives -s java-1.7.0-openjdk-amd64 |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 56 | |
| 57 | # Python dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 58 | RUN apt-get update && apt-get install -y \ |
| 59 | python-all \ |
| 60 | python-all-dev \ |
| 61 | python-all-dbg \ |
| 62 | python-setuptools \ |
| 63 | python-support \ |
| 64 | python-twisted \ |
| 65 | python-zope.interface \ |
| 66 | python-six \ |
| 67 | python3-six |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 68 | |
| 69 | # Ruby dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 70 | RUN apt-get update && apt-get install -y \ |
| 71 | ruby \ |
| 72 | ruby-dev \ |
| 73 | && gem install bundler rake |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 74 | |
| 75 | # Perl dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 76 | RUN apt-get update && apt-get install -y \ |
| 77 | libbit-vector-perl \ |
| 78 | libclass-accessor-class-perl \ |
| 79 | libcrypt-ssleay-perl \ |
| 80 | libio-socket-ssl-perl \ |
| 81 | libnet-ssleay-perl |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 82 | |
| 83 | # Php dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 84 | RUN apt-get update && apt-get install -y \ |
| 85 | php5 \ |
| 86 | php5-dev \ |
| 87 | php5-cli \ |
| 88 | php-pear \ |
| 89 | re2c \ |
| 90 | phpunit |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 91 | |
| 92 | # GlibC dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 93 | RUN apt-get update && apt-get install -y libglib2.0-dev |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 94 | |
| 95 | # Erlang dependencies |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 96 | RUN echo 'deb http://packages.erlang-solutions.com/debian trusty contrib' > /etc/apt/sources.list.d/erlang_solutions.list && \ |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 97 | curl -sSL http://packages.erlang-solutions.com/debian/erlang_solutions.asc | apt-key add - && \ |
| 98 | apt-get update && apt-get install -y \ |
| 99 | erlang-base \ |
| 100 | erlang-eunit \ |
| 101 | erlang-dev \ |
| 102 | erlang-tools \ |
| 103 | rebar |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 104 | |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 105 | # Go dependencies |
| 106 | RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz |
| 107 | ENV PATH /usr/local/go/bin:$PATH |
jfarrell | 763841b | 2015-06-24 09:11:54 -0400 | [diff] [blame] | 108 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 109 | |
| 110 | # Haskell dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 111 | RUN apt-get update && apt-get install -y \ |
| 112 | ghc \ |
| 113 | cabal-install \ |
| 114 | libghc-binary-dev \ |
| 115 | libghc-network-dev \ |
| 116 | libghc-http-dev \ |
| 117 | libghc-hashable-dev \ |
| 118 | libghc-unordered-containers-dev \ |
| 119 | libghc-vector-dev |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 120 | |
| 121 | # Haxe |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 122 | RUN apt-get update && apt-get install -y \ |
| 123 | neko \ |
| 124 | neko-dev \ |
| 125 | libneko0 \ |
| 126 | && mkdir -p /tmp/haxe /usr/lib/haxe && \ |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 127 | 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 && \ |
| 128 | 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] | 129 | ln -s /usr/lib/haxe/haxe /usr/bin/haxe && \ |
| 130 | ln -s /usr/lib/haxe/haxelib /usr/bin/haxelib && \ |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 131 | mkdir -p /usr/lib/haxe/lib && \ |
| 132 | chmod -R 777 /usr/lib/haxe/lib && \ |
| 133 | haxelib setup /usr/lib/haxe/lib && \ |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 134 | haxelib install hxcpp && \ |
| 135 | rm -rf /tmp/haxe |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 136 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 137 | |
| 138 | # Node.js dependencies |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 139 | RUN apt-get update && apt-get install -y \ |
| 140 | nodejs \ |
| 141 | nodejs-dev \ |
| 142 | nodejs-legacy \ |
| 143 | npm |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 144 | |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 145 | # CSharp dependencies |
| 146 | RUN apt-get update && apt-get install -y \ |
| 147 | libmono-system-web2.0-cil \ |
| 148 | mono-complete \ |
| 149 | mono-devel \ |
| 150 | mono-gmcs \ |
| 151 | mono-xbuild |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 152 | |
| 153 | # D dependencies |
| 154 | # 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] | 155 | # THRIFT-3253: DMD pinned to 2.065.0-0 due to deprecations 2.067.1 |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 156 | RUN apt-get update && apt-get install -y \ |
| 157 | gcc-multilib \ |
| 158 | xdg-utils \ |
| 159 | && 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 && \ |
jfarrell | b2e90c1 | 2015-07-27 08:49:53 -0400 | [diff] [blame] | 160 | dpkg -i /tmp/dmd_2.065.0-0_amd64.deb && \ |
| 161 | rm /tmp/dmd_2.065.0-0_amd64.deb |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 162 | |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 163 | # Dart dependencies |
| 164 | RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ |
| 165 | curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \ |
| 166 | apt-get update && apt-get install -y dart |
| 167 | ENV PATH /usr/lib/dart/bin:$PATH |
| 168 | |
| 169 | # Lua dependencies |
| 170 | RUN apt-get update && apt-get install -y \ |
| 171 | lua5.2 \ |
| 172 | lua5.2-dev |
| 173 | |
| 174 | # MinGW dependencies |
| 175 | RUN apt-get update && apt-get install -y \ |
| 176 | mingw32 \ |
| 177 | mingw32-binutils \ |
| 178 | mingw32-runtime \ |
| 179 | nsis |
| 180 | |
jfarrell | e03f7e8 | 2015-02-18 23:25:54 -0500 | [diff] [blame] | 181 | # Clean up |
| 182 | RUN apt-get clean && \ |
| 183 | rm -rf /var/cache/apt/* && \ |
| 184 | rm -rf /var/lib/apt/lists/* && \ |
| 185 | rm -rf /tmp/* && \ |
| 186 | rm -rf /var/tmp/* |
| 187 | |
Nobuaki Sukegawa | a6ab1f5 | 2015-11-28 15:04:39 +0900 | [diff] [blame] | 188 | ENV THRIFT_ROOT /thrift |
| 189 | RUN mkdir -p $THRIFT_ROOT/src |
| 190 | COPY scripts $THRIFT_ROOT |
| 191 | WORKDIR $THRIFT_ROOT/src |