]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/build/docker/ubuntu-xenial/Dockerfile
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / thrift / build / docker / ubuntu-xenial / Dockerfile
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 #
14 # Apache Thrift Docker build environment for Ubuntu Xenial
15 # Using all stock Ubuntu Xenial packaging except for:
16 # - d: does not come with Ubuntu so we're installing 2.075.1 for coverage
17 # - dart: does not come with Ubuntu so we're installing 2.0.0-1 for coverage
18 # - dotnet: does not come with Ubuntu
19 # - go: Xenial comes with 1.6, but we need 1.10 or later
20 # - nodejs: Xenial comes with 4.2.6 which exits LTS April 2018, so we're installing 6.x
21 # - ocaml: causes stack overflow error, just started March 2018 not sure why
22 #
23
24 FROM buildpack-deps:xenial-scm
25 MAINTAINER Apache Thrift <dev@thrift.apache.org>
26 ENV DEBIAN_FRONTEND noninteractive
27
28 ### Add apt repos
29
30 RUN apt-get update && \
31 apt-get dist-upgrade -y && \
32 apt-get install -y --no-install-recommends \
33 apt \
34 apt-transport-https \
35 apt-utils \
36 curl \
37 software-properties-common \
38 wget && \
39
40 # csharp (mono)
41 # echo "deb http://download.mono-project.com/repo/debian xenial main" | tee /etc/apt/sources.list.d/mono.list && \
42 # apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6A19B38D3D831EF && \
43
44 # D
45 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EBCF975E5BA24D5E && \
46 wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list && \
47 wget -qO - https://dlang.org/d-keyring.gpg | apt-key add - && \
48
49 # Dart
50 curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
51 curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > \
52 /etc/apt/sources.list.d/dart_stable.list && \
53
54 # dotnet (core)
55 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg && \
56 echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > \
57 /etc/apt/sources.list.d/dotnetdev.list && \
58
59 # node.js
60 curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
61 echo "deb https://deb.nodesource.com/node_6.x xenial main" | tee /etc/apt/sources.list.d/nodesource.list
62
63 ### install general dependencies
64 RUN apt-get update && apt-get install -y --no-install-recommends \
65 `# General dependencies` \
66 bash-completion \
67 bison \
68 build-essential \
69 clang \
70 cmake \
71 debhelper \
72 flex \
73 gdb \
74 llvm \
75 ninja-build \
76 pkg-config \
77 valgrind \
78 vim
79 ENV PATH /usr/lib/llvm-3.8/bin:$PATH
80
81 ### languages
82
83 RUN apt-get install -y --no-install-recommends \
84 `# C++ dependencies` \
85 libboost-dev \
86 libboost-filesystem-dev \
87 libboost-program-options-dev \
88 libboost-system-dev \
89 libboost-test-dev \
90 libboost-thread-dev \
91 libevent-dev \
92 libssl-dev \
93 qt5-default \
94 qtbase5-dev \
95 qtbase5-dev-tools
96
97 RUN apt-get install -y --no-install-recommends \
98 `# csharp (mono) dependencies` \
99 mono-devel
100
101 ENV D_VERSION 2.075.1-0
102 RUN apt-get install -y --allow-unauthenticated --no-install-recommends \
103 `# D dependencies` \
104 dmd-bin=$D_VERSION \
105 libphobos2-dev=$D_VERSION \
106 dub=1.6.0-0 \
107 dfmt \
108 dscanner \
109 libevent-dev \
110 libssl-dev \
111 xdg-utils
112 RUN mkdir -p /usr/include/dmd/druntime/import/deimos /usr/include/dmd/druntime/import/C && \
113 curl -sSL https://github.com/D-Programming-Deimos/libevent/archive/master.tar.gz| tar xz && \
114 mv libevent-master/deimos/* /usr/include/dmd/druntime/import/deimos/ && \
115 mv libevent-master/C/* /usr/include/dmd/druntime/import/C/ && \
116 rm -rf libevent-master
117 RUN curl -sSL https://github.com/D-Programming-Deimos/openssl/archive/v1.1.6+1.0.1g.tar.gz | tar xz && \
118 mv openssl-1.1.6-1.0.1g/deimos/* /usr/include/dmd/druntime/import/deimos/ && \
119 mv openssl-1.1.6-1.0.1g/C/* /usr/include/dmd/druntime/import/C/ && \
120 rm -rf openssl-1.1.6-1.0.1g
121
122 ENV DART_VERSION 2.0.0-1
123 RUN apt-get install -y --no-install-recommends \
124 `# Dart dependencies` \
125 dart=$DART_VERSION
126 ENV PATH /usr/lib/dart/bin:$PATH
127
128 RUN apt-get install -y --no-install-recommends \
129 `# dotnet core dependencies` \
130 dotnet-sdk-2.1
131
132 RUN apt-get install -y --no-install-recommends \
133 `# Erlang dependencies` \
134 erlang-base \
135 erlang-eunit \
136 erlang-dev \
137 erlang-tools \
138 rebar
139
140 RUN apt-get install -y --no-install-recommends \
141 `# GlibC dependencies` \
142 libglib2.0-dev
143
144 # golang
145 ENV GOLANG_VERSION 1.10.8
146 ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
147 ENV GOLANG_DOWNLOAD_SHA256 d8626fb6f9a3ab397d88c483b576be41fa81eefcec2fd18562c87626dbb3c39e
148 RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz && \
149 echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - && \
150 tar -C /usr/local -xzf golang.tar.gz && \
151 ln -s /usr/local/go/bin/go /usr/local/bin && \
152 rm golang.tar.gz
153
154 # cabal 1.22 in xenial is too old so we grab a pre-built 1.24 binary
155 RUN apt-get install -y --no-install-recommends \
156 `# Haskell dependencies` \
157 ghc && \
158 cd /tmp && \
159 wget -q https://www.haskell.org/cabal/release/cabal-install-1.24.0.2/cabal-install-1.24.0.2-x86_64-unknown-linux.tar.gz && \
160 tar xzf cabal-install-1.24.0.2-x86_64-unknown-linux.tar.gz && \
161 find dist-newstyle/ -type f -name cabal -exec mv {} /usr/bin \; && \
162 rm -rf /tmp/cabal* && \
163 cabal --version && \
164 cabal update
165
166 RUN apt-get install -y --no-install-recommends \
167 `# Haxe dependencies` \
168 haxe \
169 neko \
170 neko-dev \
171 libneko0 && \
172 haxelib setup --always /usr/share/haxe/lib && \
173 haxelib install --always hxcpp 3.4.64 2>&1 > /dev/null
174 # note: hxcpp 3.4.185 (latest) no longer ships static libraries, and caused a build failure
175
176 RUN apt-get install -y --no-install-recommends \
177 `# Java dependencies` \
178 ant \
179 ant-optional \
180 openjdk-8-jdk \
181 maven
182
183 # disabled: same as ubuntu-bionic jobs
184 # RUN apt-get install -y --no-install-recommends \
185 # `# Lua dependencies` \
186 # lua5.2 \
187 # lua5.2-dev
188 # https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1707212
189 # lua5.3 does not install alternatives so stick with 5.2 here
190
191 RUN apt-get install -y --no-install-recommends \
192 `# Node.js dependencies` \
193 nodejs
194
195 # Test dependencies for running puppeteer
196 RUN apt-get install -y --no-install-recommends \
197 `# JS dependencies` \
198 libxss1 \
199 libatk-bridge2.0-0 \
200 libgtk-3-0
201
202 # THRIFT-4517: causes stack overflows; version too old; skip ocaml in xenial
203 # RUN apt-get install -y --no-install-recommends \
204 # `# OCaml dependencies` \
205 # ocaml \
206 # opam && \
207 # opam init --yes && \
208 # opam install --yes oasis
209
210 RUN apt-get install -y --no-install-recommends \
211 `# Perl dependencies` \
212 libbit-vector-perl \
213 libclass-accessor-class-perl \
214 libcrypt-ssleay-perl \
215 libio-socket-ssl-perl \
216 libnet-ssleay-perl
217
218 RUN apt-get install -y --no-install-recommends \
219 `# Php dependencies` \
220 php7.0 \
221 php7.0-cli \
222 php7.0-dev \
223 php-json \
224 php-pear \
225 re2c \
226 composer
227
228 RUN apt-get install -y --no-install-recommends \
229 `# Python dependencies` \
230 python-all \
231 python-all-dbg \
232 python-all-dev \
233 python-backports.ssl-match-hostname \
234 python-ipaddress \
235 python-pip \
236 python-setuptools \
237 python-six \
238 python-tornado \
239 python-twisted \
240 python-wheel \
241 python-zope.interface \
242 python3-all \
243 python3-all-dbg \
244 python3-all-dev \
245 python3-setuptools \
246 python3-six \
247 python3-tornado \
248 python3-twisted \
249 python3-wheel \
250 python3-zope.interface && \
251 pip install --upgrade backports.ssl_match_hostname
252
253 RUN apt-get install -y --no-install-recommends \
254 `# Ruby dependencies` \
255 ruby \
256 ruby-dev \
257 ruby-bundler
258
259 # Rust dependencies
260 RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.34.0 -y
261
262 # Clean up
263 RUN rm -rf /var/cache/apt/* && \
264 rm -rf /var/lib/apt/lists/* && \
265 rm -rf /tmp/* && \
266 rm -rf /var/tmp/*
267
268 ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
269 ENV THRIFT_ROOT /thrift
270 RUN mkdir -p $THRIFT_ROOT/src
271 COPY Dockerfile $THRIFT_ROOT/
272 WORKDIR $THRIFT_ROOT/src