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