tests/docker: flatten debian-powerpc-test-cross
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 14 Sep 2022 15:59:34 +0000 (16:59 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 20 Sep 2022 15:27:31 +0000 (16:27 +0100)
Flatten into a single dockerfile. We really don't need the rest of the
stuff from the QEMU base image just to compile test images.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220914155950.804707-15-alex.bennee@linaro.org>

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

index db0ea15d0dd94b7dcd145b707cd982ef3b044169..67bbf19a27a323aca01ca014eaa8ebff6d60c8d7 100644 (file)
@@ -102,7 +102,6 @@ mipsel-debian-cross-container:
 powerpc-test-cross-container:
   extends: .container_job_template
   stage: containers
-  needs: ['amd64-debian11-container']
   variables:
     NAME: debian-powerpc-test-cross
 
index 8828b6b8fa33b6bbc5373ba88668548493adaa04..e034eca3af8e33b1473462e17460fb72bf96eec9 100644 (file)
@@ -137,7 +137,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-powerpc-test-cross: docker-image-debian11
 docker-image-debian-riscv64-test-cross: docker-image-debian11
 
 # These images may be good enough for building tests but not for test builds
index 36b336f709fc79bea8a7c904b43b04c9b45167a4..d6b2909cc42f4beae2b7b73c6c3eb52637adb495 100644 (file)
@@ -1,13 +1,15 @@
 #
 # Docker powerpc/ppc64/ppc64le cross-compiler target
 #
-# This docker target builds on the debian Bullseye base image.
+# 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-powerpc-linux-gnu \
         libc6-dev-powerpc-cross \
         gcc-10-powerpc64-linux-gnu \