blob: 46a2e0e8e7f7aed8692d1631cc4ce00e0a67bf05 [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:
Nobuaki Sukegawadd2223c2016-02-22 21:02:37 +090016# - None
Roger Meier447294f2015-12-11 00:04:41 +010017
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
Nobuaki Sukegawadd2223c2016-02-22 21:02:37 +0900109RUN apt-get update && apt-get install -y --no-install-recommends \
110 ghc \
111 cabal-install
Roger Meier447294f2015-12-11 00:04:41 +0100112
113# Haxe
114RUN apt-get update && apt-get install -y \
115 neko \
116 neko-dev \
117 libneko0 \
118 && mkdir -p /tmp/haxe /usr/lib/haxe && \
119 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 && \
120 tar -xvzf /tmp/haxe/haxe-3.2.0-linux64.tar.gz -C /usr/lib/haxe --strip-components=1 && \
121 ln -s /usr/lib/haxe/haxe /usr/bin/haxe && \
122 ln -s /usr/lib/haxe/haxelib /usr/bin/haxelib && \
123 mkdir -p /usr/lib/haxe/lib && \
124 chmod -R 777 /usr/lib/haxe/lib && \
125 haxelib setup /usr/lib/haxe/lib && \
126 haxelib install hxcpp && \
127 rm -rf /tmp/haxe
128
129
130# Node.js dependencies
131RUN apt-get update && apt-get install -y \
132 nodejs \
133 nodejs-dev \
134 nodejs-legacy \
135 npm
136
137# CSharp dependencies
138RUN apt-get update && apt-get install -y \
139 libmono-system-web2.0-cil \
140 mono-complete \
141 mono-devel \
142 mono-gmcs \
143 mono-xbuild
144
145# D dependencies
Roger Meier447294f2015-12-11 00:04:41 +0100146RUN apt-get update && apt-get install -y \
147 gcc-multilib \
148 xdg-utils \
Nobuaki Sukegawa33de26c2016-02-22 01:43:23 +0900149 && curl -sSL http://downloads.dlang.org/releases/2.x/2.070.0/dmd_2.070.0-0_amd64.deb -o /tmp/dmd_2.070.0-0_amd64.deb && \
150 dpkg -i /tmp/dmd_2.070.0-0_amd64.deb && \
151 rm /tmp/dmd_2.070.0-0_amd64.deb
Roger Meier447294f2015-12-11 00:04:41 +0100152
153# Dart dependencies
154RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
155 curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \
156 apt-get update && apt-get install -y dart
157ENV PATH /usr/lib/dart/bin:$PATH
158
159# Lua dependencies
160RUN apt-get update && apt-get install -y \
161 lua5.2 \
162 lua5.2-dev
163
164# MinGW dependencies
165RUN apt-get update && apt-get install -y \
166 mingw32 \
167 mingw32-binutils \
168# mingw32-runtime \
169 nsis
170
171# Clean up
172RUN apt-get clean && \
173 rm -rf /var/cache/apt/* && \
174 rm -rf /var/lib/apt/lists/* && \
175 rm -rf /tmp/* && \
176 rm -rf /var/tmp/*
177
Nobuaki Sukegawadd2223c2016-02-22 21:02:37 +0900178# Force utf8 locale to successfully build Haskell tf-random
179ENV LC_ALL C.UTF-8
180
Roger Meier447294f2015-12-11 00:04:41 +0100181ENV THRIFT_ROOT /thrift
182RUN mkdir -p $THRIFT_ROOT/src
183COPY scripts $THRIFT_ROOT
184WORKDIR $THRIFT_ROOT/src