-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
41 lines (35 loc) · 2.01 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
FROM debian:buster
# Inform apt-get that it'll get no such satisfaction from us
ENV DEBIAN_FRONTEND noninteractive
###
# Install all of our dependencies
###
# Install LLVM and various other tooling
ENV LLVM_VERSION 7
RUN apt-get clean && \
apt-get update && \
apt-get install -y --no-install-recommends autoconf automake \
bison build-essential ca-certificates crossbuild-essential-arm64 \
debhelper devscripts flex git libcap-dev libcap2-bin libibverbs-dev \
libnuma-dev libtool lintian meson netcat-openbsd \
pkg-config python3 python3-pyelftools sudo virtualenv wget \
clang-${LLVM_VERSION} clang-format-${LLVM_VERSION} \
clang-tidy-${LLVM_VERSION} \
llvm-${LLVM_VERSION} llvm-${LLVM_VERSION}-dev \
lld-${LLVM_VERSION} bear
# Install Intel SPMD Program Compiler (ISPC)
ENV ISPC_VERSION 1.16.1
RUN wget -q -O - https://github.com/ispc/ispc/releases/download/v${ISPC_VERSION}/ispc-v${ISPC_VERSION}-linux.tar.gz \
| tar -C /opt -xvz && \
chown -R root:root /opt/ispc-v${ISPC_VERSION}-linux/bin/ispc && \
ln -s /opt/ispc-v${ISPC_VERSION}-linux/bin/ispc /usr/local/bin/ispc
# Fix up toolchain names
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${LLVM_VERSION} ${LLVM_VERSION} \
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-${LLVM_VERSION} && \
update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-${LLVM_VERSION} ${LLVM_VERSION} && \
update-alternatives --install /usr/bin/run-clang-tidy run-clang-tidy /usr/bin/run-clang-tidy-${LLVM_VERSION} ${LLVM_VERSION} && \
update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-${LLVM_VERSION} ${LLVM_VERSION} && \
update-alternatives --install /usr/bin/llvm-objcopy llvm-objcopy /usr/bin/llvm-objcopy-${LLVM_VERSION} ${LLVM_VERSION} && \
update-alternatives --install /usr/bin/lld lld /usr/bin/lld-${LLVM_VERSION} ${LLVM_VERSION}
# Install other Circle CI dependencies
RUN apt-get install -y --no-install-recommends openssh-client