docker: remove packages now dependent of qemu in Stretch
[qemu.git] / tests / docker / dockerfiles / debian-s390x-cross.docker
blobe188bfeda4d167d91b991fa9d1dc760cdbed5215
2 # Docker s390 cross-compiler target
4 # This docker target builds on the debian Stretch base image.
6 FROM qemu:debian9
8 # Add the s390x architecture
9 RUN dpkg --add-architecture s390x
11 # Grab the updated list of packages
12 RUN apt update && apt dist-upgrade -yy
13 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
14     apt-get install -y --no-install-recommends \
15         gcc-multilib-s390x-linux-gnu
17 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
18     apt-get build-dep -yy -a s390x qemu
20 # Specify the cross prefix for this image (see tests/docker/common.rc)
21 ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-
23 # Install extra libraries to increase code coverage
24 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
25     apt-get install -y --no-install-recommends \
26         libbz2-dev:s390x \
27         liblzo2-dev:s390x \
28         librdmacm-dev:s390x \
29         libsnappy-dev:s390x