]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | # Licensed to the Apache Software Foundation (ASF) under one |
2 | # or more contributor license agreements. See the NOTICE file | |
3 | # distributed with this work for additional information | |
4 | # regarding copyright ownership. The ASF licenses this file | |
5 | # to you under the Apache License, Version 2.0 (the | |
6 | # "License"); you may not use this file except in compliance | |
7 | # with the License. You may obtain a copy of the License at | |
8 | # | |
9 | # http://www.apache.org/licenses/LICENSE-2.0 | |
10 | # | |
11 | # Unless required by applicable law or agreed to in writing, | |
12 | # software distributed under the License is distributed on an | |
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
14 | # KIND, either express or implied. See the License for the | |
15 | # specific language governing permissions and limitations | |
16 | # under the License. | |
17 | ||
18 | ARG FROM=ubuntu:bionic | |
19 | FROM ${FROM} | |
20 | ||
21 | RUN \ | |
22 | echo "debconf debconf/frontend select Noninteractive" | \ | |
23 | debconf-set-selections | |
24 | ||
25 | RUN \ | |
26 | echo 'APT::Install-Recommends "false";' > \ | |
27 | /etc/apt/apt.conf.d/disable-install-recommends | |
28 | ||
29 | ARG DEBUG | |
30 | RUN \ | |
31 | quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \ | |
32 | apt update ${quiet} && \ | |
33 | apt install -y -V ${quiet} \ | |
34 | build-essential \ | |
35 | ccache \ | |
36 | clang-10 \ | |
37 | cmake \ | |
38 | devscripts \ | |
39 | fakeroot \ | |
40 | git \ | |
41 | gtk-doc-tools \ | |
42 | libboost-filesystem-dev \ | |
43 | libboost-system-dev \ | |
44 | libbrotli-dev \ | |
45 | libbz2-dev \ | |
46 | libcurl4-openssl-dev \ | |
47 | libgirepository1.0-dev \ | |
48 | libglib2.0-doc \ | |
49 | libgoogle-glog-dev \ | |
50 | libgtest-dev \ | |
51 | liblz4-dev \ | |
52 | libre2-dev \ | |
53 | libsnappy-dev \ | |
54 | libssl-dev \ | |
55 | llvm-10-dev \ | |
56 | lsb-release \ | |
57 | ninja-build \ | |
58 | pkg-config \ | |
59 | python3-dev \ | |
60 | python3-numpy \ | |
61 | python3-pip \ | |
62 | python3-setuptools \ | |
63 | python3-wheel \ | |
64 | rapidjson-dev \ | |
65 | tzdata \ | |
66 | zlib1g-dev && \ | |
67 | (echo "includedir=/usr/include" && \ | |
68 | echo "libdir=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)" && \ | |
69 | echo "" && \ | |
70 | echo "Name: re2" && \ | |
71 | echo "Description: RE2 is a fast, safe, thread-friendly regular expression engine." && \ | |
72 | echo "Version: 0.0.0" && \ | |
73 | echo "Cflags: -std=c++11 -pthread -I\${includedir}" && \ | |
74 | echo "Libs: -pthread -L\${libdir} -lre2") | \ | |
75 | tee "/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/pkgconfig/re2.pc" && \ | |
76 | if apt list | grep '^nvidia-cuda-toolkit/'; then \ | |
77 | apt install -y -V ${quiet} nvidia-cuda-toolkit; \ | |
78 | fi && \ | |
79 | apt install -y -V -t bionic-backports ${quiet} \ | |
80 | debhelper && \ | |
81 | pip3 install --upgrade meson && \ | |
82 | ln -s /usr/local/bin/meson /usr/bin/ && \ | |
83 | apt clean && \ | |
84 | rm -rf /var/lib/apt/lists/* |