blob: b9e1da76c8cf628da4d9c3269d270b4692ad6bbe [file] [log] [blame]
Roger Meier447294f2015-12-11 00:04:41 +01001# 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# - Haskell
17
18FROM debian:jessie
19MAINTAINER Apache Thrift <dev@thrift.apache.org>
20
21ENV DEBIAN_FRONTEND noninteractive
22
23# General dependencies
24RUN 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
37
38# C++ dependencies
39RUN 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
49
50# Java dependencies
51RUN 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
56
57# Python dependencies
58RUN 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 \
Nobuaki Sukegawa25536ad2016-02-04 15:08:55 +090066 python-pip \
67 python3-pip
Roger Meier447294f2015-12-11 00:04:41 +010068
69# Ruby dependencies
70RUN apt-get update && apt-get install -y \
71 ruby \
72 ruby-dev \
73 && gem install bundler rake
74
75# Perl dependencies
76RUN 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
82
83# Php dependencies
84RUN apt-get update && apt-get install -y \
85 php5 \
86 php5-dev \
87 php5-cli \
88 php-pear \
89 re2c \
90 phpunit
91
92# GlibC dependencies
93RUN apt-get update && apt-get install -y libglib2.0-dev
94
95# Erlang dependencies
96RUN apt-get update && apt-get install -y \
97 erlang-base \
98 erlang-eunit \
99 erlang-dev \
100 erlang-tools \
101 rebar
102
103# Go dependencies
104RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz
105ENV PATH /usr/local/go/bin:$PATH
106
107
108# Haskell dependencies
109#RUN apt-get update && apt-get install -y \
110# ghc \
111# cabal-install \
112# libghc-binary-dev \
113# libghc-network-dev \
114# libghc-http-dev \
115# libghc-hashable-dev \
116# libghc-unordered-containers-dev \
117# libghc-vector-dev
118
119# Haxe
120RUN apt-get update && apt-get install -y \
121 neko \
122 neko-dev \
123 libneko0 \
124 && mkdir -p /tmp/haxe /usr/lib/haxe && \
125 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 && \
126 tar -xvzf /tmp/haxe/haxe-3.2.0-linux64.tar.gz -C /usr/lib/haxe --strip-components=1 && \
127 ln -s /usr/lib/haxe/haxe /usr/bin/haxe && \
128 ln -s /usr/lib/haxe/haxelib /usr/bin/haxelib && \
129 mkdir -p /usr/lib/haxe/lib && \
130 chmod -R 777 /usr/lib/haxe/lib && \
131 haxelib setup /usr/lib/haxe/lib && \
132 haxelib install hxcpp && \
133 rm -rf /tmp/haxe
134
135
136# Node.js dependencies
137RUN apt-get update && apt-get install -y \
138 nodejs \
139 nodejs-dev \
140 nodejs-legacy \
141 npm
142
143# CSharp dependencies
144RUN apt-get update && apt-get install -y \
145 libmono-system-web2.0-cil \
146 mono-complete \
147 mono-devel \
148 mono-gmcs \
149 mono-xbuild
150
151# D dependencies
152# THRIFT-2916: DMD pinned to 2.065.0-0 due to regression in 2.066
153# THRIFT-3253: DMD pinned to 2.065.0-0 due to deprecations 2.067.1
154RUN apt-get update && apt-get install -y \
155 gcc-multilib \
156 xdg-utils \
157 && 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 && \
158 dpkg -i /tmp/dmd_2.065.0-0_amd64.deb && \
159 rm /tmp/dmd_2.065.0-0_amd64.deb
160
161# Dart dependencies
162RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
163 curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \
164 apt-get update && apt-get install -y dart
165ENV PATH /usr/lib/dart/bin:$PATH
166
167# Lua dependencies
168RUN apt-get update && apt-get install -y \
169 lua5.2 \
170 lua5.2-dev
171
172# MinGW dependencies
173RUN apt-get update && apt-get install -y \
174 mingw32 \
175 mingw32-binutils \
176# mingw32-runtime \
177 nsis
178
179# Clean up
180RUN apt-get clean && \
181 rm -rf /var/cache/apt/* && \
182 rm -rf /var/lib/apt/lists/* && \
183 rm -rf /tmp/* && \
184 rm -rf /var/tmp/*
185
186ENV THRIFT_ROOT /thrift
187RUN mkdir -p $THRIFT_ROOT/src
188COPY scripts $THRIFT_ROOT
189WORKDIR $THRIFT_ROOT/src