ar7: Update board code for latest QEMU API
[qemu/ar7.git] / tests / docker / dockerfiles / debian-sid.docker
blob676941cb32812578f263c46ae4d8e9752e70c101
2 # Debian Sid Base
4 # A number of our guests exist as ports only. We can either use the
5 # ports repo or get everything from Sid. However Sid is a rolling
6 # distro which may be broken at any particular time. If you are
7 # unlucky and try and build your images while gcc is in the process of
8 # being uploaded this can fail. Your only recourse is to try again in
9 # a few hours when the repos have re-synced. Once built however you
10 # won't be affected by repo changes unless the docker recipies are
11 # updated and trigger a re-build.
14 # This must be earlier than the snapshot date we are aiming for
15 FROM debian:sid-20181011-slim
17 # Use a snapshot known to work (see http://snapshot.debian.org/#Usage)
18 ENV DEBIAN_SNAPSHOT_DATE "20181030"
19 RUN 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
21 # Use a snapshot known to work (see http://snapshot.debian.org/#Usage)
22 ENV DEBIAN_SNAPSHOT_DATE "20181030"
23 RUN 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
25 # Duplicate deb line as deb-src
26 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
28 # Install common build utilities
29 RUN apt update
30 RUN DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata
31 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
32     apt install -y --no-install-recommends \
33         bison \
34         build-essential \
35         ca-certificates \
36         flex \
37         git \
38         pkg-config \
39         psmisc \
40         python \
41         texinfo || { echo "Failed to build - see debian-sid.docker notes"; exit 1; }