Files
xen/automation/build/debian/stretch.dockerfile
T
Roger Pau Monne 6325f70e77 automation: add clang and lld 8 tests to gitlab
Using clang and lld 8 requires installing the packages from the
official llvm apt repositories, so modify the Debian Docker files for
stretch and unstable to add the llvm repo and install clang and lld
from it.

Also add some jobs to test building Xen with clang 8 and lld.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
2019-06-11 11:06:52 +01:00

62 lines
1.4 KiB
Docker

FROM debian:stretch
LABEL maintainer.name="The Xen Project" \
maintainer.email="xen-devel@lists.xenproject.org"
ENV DEBIAN_FRONTEND=noninteractive
ENV USER root
RUN mkdir /build
WORKDIR /build
# build depends
RUN apt-get update && \
apt-get --quiet --yes install \
build-essential \
zlib1g-dev \
libncurses5-dev \
libssl-dev \
python-dev \
xorg-dev \
uuid-dev \
libyajl-dev \
libaio-dev \
libglib2.0-dev \
clang \
libpixman-1-dev \
pkg-config \
flex \
bison \
gettext \
acpica-tools \
bin86 \
bcc \
liblzma-dev \
libc6-dev-i386 \
libnl-3-dev \
ocaml-nox \
libfindlib-ocaml-dev \
markdown \
transfig \
pandoc \
checkpolicy \
wget \
git \
nasm \
gnupg \
&& \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
COPY stretch-llvm-8.list /etc/apt/sources.list.d/
RUN apt-get update && \
apt-get --quiet --yes install \
clang-8 \
lld-8 \
&& \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*