forked from dotnet/dotnet-buildtools-prereqs-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
94 lines (89 loc) · 2.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
FROM fedora:24
# Workaround to avoid NuGet restore timeout
RUN dnf upgrade -y nss \
&& dnf clean all
# Install the base toolchain we need to build anything (clang, cmake, make and the like)
# this does not include libraries that we need to compile different projects, we'd like
# them in a different layer.
RUN dnf install -y \
clang \
cmake \
findutils \
gdb \
llvm-devel \
make \
python \
which \
&& dnf clean all
# Install tools used by the VSO build automation.
RUN dnf install -y \
git \
npm \
nodejs \
tar \
zip \
&& dnf clean all \
&& npm install -g azure-cli \
&& npm cache clean
# Build and install liblldb development files
RUN dnf -y install \
doxygen \
libedit-devel \
libxml2-devel \
python-argparse \
python-devel \
readline-devel \
swig \
wget \
xz && \
\
wget http://releases.llvm.org/3.9.1/cfe-3.9.1.src.tar.xz && \
wget http://releases.llvm.org/3.9.1/llvm-3.9.1.src.tar.xz && \
wget http://releases.llvm.org/3.9.1/lldb-3.9.1.src.tar.xz && \
\
tar -xf llvm-3.9.1.src.tar.xz && \
mkdir llvm-3.9.1.src/tools/clang && \
mkdir llvm-3.9.1.src/tools/lldb && \
tar -xf cfe-3.9.1.src.tar.xz --strip 1 -C llvm-3.9.1.src/tools/clang && \
tar -xf lldb-3.9.1.src.tar.xz --strip 1 -C llvm-3.9.1.src/tools/lldb && \
rm cfe-3.9.1.src.tar.xz && \
rm lldb-3.9.1.src.tar.xz && \
rm llvm-3.9.1.src.tar.xz && \
\
mkdir llvmbuild && \
cd llvmbuild && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DLLDB_DISABLE_CURSES=1 \
-DLLVM_LIBDIR_SUFFIX=64 \
-DLLVM_ENABLE_EH=1 \
-DLLVM_ENABLE_RTTI=1 \
-DLLVM_BUILD_DOCS=0 \
../llvm-3.9.1.src \
&& \
make -j $(($(getconf _NPROCESSORS_ONLN)+1)) && \
make install && \
cd .. && \
rm -r llvmbuild && \
rm -r llvm-3.9.1.src && \
\
dnf -y remove \
doxygen \
libedit-devel \
libxml2-devel \
readline-devel \
swig && \
\
dnf clean all
# Dependencies of CoreCLR and CoreFX.
RUN dnf install -y \
glibc-locale-source \
libcurl-devel \
libgdiplus \
libicu-devel \
libunwind-devel \
libuuid-devel \
lttng-ust-devel \
openssl-devel \
uuid-devel \
&& dnf clean all