1#
2# Docker ppc64el cross-compiler target
3#
4# This docker target builds on the debian Stretch base image.
5#
6FROM qemu:debian9
7
8# Add the foreign architecture we want and install dependencies
9RUN dpkg --add-architecture ppc64el && \
10    apt update
11RUN apt install -yy crossbuild-essential-ppc64el
12
13RUN DEBIAN_FRONTEND=noninteractive eatmydata \
14    apt-get build-dep -yy -a ppc64el qemu
15
16# Specify the cross prefix for this image (see tests/docker/common.rc)
17ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc64le-linux-gnu-
18
19# Install extra libraries to increase code coverage
20RUN DEBIAN_FRONTEND=noninteractive eatmydata \
21    apt-get install -y --no-install-recommends \
22        libbz2-dev:ppc64el \
23        liblzo2-dev:ppc64el \
24        librdmacm-dev:ppc64el \
25        libsnappy-dev:ppc64el
26