]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/docker: flatten debian-riscv64-test-cross
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 14 Sep 2022 15:59:42 +0000 (16:59 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 20 Sep 2022 16:22:08 +0000 (17:22 +0100)
Flatten into a single dockerfile and update to match the rest of the
test cross compile dockerfiles.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220914155950.804707-23-alex.bennee@linaro.org>

.gitlab-ci.d/container-cross.yml
tests/docker/Makefile.include
tests/docker/dockerfiles/debian-riscv64-test-cross.docker

index 95d57e1c5d8afa9faa8997cf9c9f04c78c32483a..3a8bd754738fac9a90c67742abafcd058f645fb6 100644 (file)
@@ -122,7 +122,6 @@ riscv64-debian-cross-container:
 riscv64-debian-test-cross-container:
   extends: .container_job_template
   stage: containers
-  needs: ['amd64-debian11-container']
   variables:
     NAME: debian-riscv64-test-cross
 
index b1bf56434f02679c6b88ccf10018d7f215fbae55..24cd44e66703fc7dc853039249c54f86e79bfe59 100644 (file)
@@ -133,7 +133,6 @@ docker-image-debian-all-test-cross: docker-image-debian10
 docker-image-debian-loongarch-cross: docker-image-debian11
 docker-image-debian-microblaze-cross: docker-image-debian10
 docker-image-debian-nios2-cross: docker-image-debian10
-docker-image-debian-riscv64-test-cross: docker-image-debian11
 
 # These images may be good enough for building tests but not for test builds
 DOCKER_PARTIAL_IMAGES += debian-alpha-cross
index 1d909012980f919ed7cea2725487657e47515a5d..e5f83a5aebbf87eb1065bbcc4e56cc653e32bc47 100644 (file)
@@ -3,10 +3,12 @@
 #
 # This docker target builds on the Debian Bullseye base image.
 #
-FROM qemu/debian11
+FROM docker.io/library/debian:11-slim
 
-RUN apt update && \
-    DEBIAN_FRONTEND=noninteractive eatmydata \
-    apt install -y --no-install-recommends \
+RUN export DEBIAN_FRONTEND=noninteractive && \
+    apt-get update && \
+    apt-get install -y eatmydata && \
+    eatmydata apt-get dist-upgrade -y && \
+    eatmydata apt-get install --no-install-recommends -y \
         gcc-riscv64-linux-gnu \
         libc6-dev-riscv64-cross