forked from compiler-explorer/misc-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.iwyu
52 lines (44 loc) · 1.48 KB
/
Dockerfile.iwyu
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
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386
RUN apt update -y -q && apt upgrade -y -q && apt update -y -q && \
apt install -y -q \
build-essential \
curl \
gcc-multilib \
git \
libc6-dev-i386 \
libc6-dev:i386 \
linux-libc-dev \
python3.9 \
python3.9-venv \
python3-pip \
s3cmd \
xz-utils \
unzip \
zlib1g-dev \
ninja-build \
patchelf \
openssh-client
RUN cd /tmp && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf aws*
RUN mkdir -p /opt/compiler-explorer
# Add github public key to known_hosts, to enable interaction-less clone
RUN mkdir /root/.ssh \
&& touch /root/.ssh/known_hosts \
&& ssh-keyscan github.com >> /root/.ssh/known_hosts
RUN git clone https://github.com/compiler-explorer/infra /opt/compiler-explorer/infra
RUN cd /opt/compiler-explorer/infra && make ce
#RUN /opt/compiler-explorer/infra/bin/ce_install install 'clang 8.0.0'
#RUN /opt/compiler-explorer/infra/bin/ce_install install 'clang 16.0.0'
#RUN /opt/compiler-explorer/infra/bin/ce_install install 'clang 17.0.1'
RUN /opt/compiler-explorer/infra/bin/ce_install install 'clang 18.1.0'
RUN curl -sL https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-x86_64.tar.gz \
| tar zx -C /usr --strip-components=1
RUN mkdir -p /root
COPY iwyu /root/
COPY common.sh /root/
WORKDIR /root