]> git.proxmox.com Git - mirror_qemu.git/blame - tests/docker/dockerfiles/debian-sid.docker
hw/arm/boot: Use the IEC binary prefix definitions
[mirror_qemu.git] / tests / docker / dockerfiles / debian-sid.docker
CommitLineData
409c1c9c
AB
1#
2# Debian Sid Base
3#
a3c1f128
AB
4# Currently we can build all our guests with cross-compilers in the
5# latest Debian release (Buster). However new compilers will first
6# arrive in Sid. However Sid is a rolling distro which may be broken
7# at any particular time. To try and mitigate this we use Debian's
8# snapshot archive which provides a "stable" view of what state Sid
9# was in.
409c1c9c
AB
10#
11
b4048a7c 12# This must be earlier than the snapshot date we are aiming for
a3c1f128 13FROM debian:sid-20190812-slim
b4048a7c 14
a3c1f128
AB
15 # Use a snapshot known to work (see http://snapshot.debian.org/#Usage)
16ENV DEBIAN_SNAPSHOT_DATE "20190820"
4ce58d86
PMD
17RUN sed -i "s%^deb \(https\?://\)deb.debian.org/debian/\? \(.*\)%deb [check-valid-until=no] \1snapshot.debian.org/archive/debian/${DEBIAN_SNAPSHOT_DATE} \2%" /etc/apt/sources.list
18
409c1c9c
AB
19# Duplicate deb line as deb-src
20RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
21
22# Install common build utilities
98808c3d
PMD
23RUN apt update && \
24 DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
25 DEBIAN_FRONTEND=noninteractive eatmydata \
409c1c9c
AB
26 apt install -y --no-install-recommends \
27 bison \
28 build-essential \
29 ca-certificates \
30 flex \
31 git \
32 pkg-config \
33 psmisc \
34 python \
35 texinfo || { echo "Failed to build - see debian-sid.docker notes"; exit 1; }