aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2020-12-17 11:37:58 +0100
committerFathi Boudra <fathi.boudra@linaro.org>2020-12-17 11:37:58 +0100
commit6ac8d3debd752670ffd35fc9cfcd84033f9fc2e4 (patch)
treefdd4c5e4005c49e54b728ff631990adcee7b2a25
parent14a4747fae84203ec1b97b664fd48dc27ec155ec (diff)
downloaddockerfiles-6ac8d3debd752670ffd35fc9cfcd84033f9fc2e4.tar.gz
TF-M: add a new image used for QEMU device type in LAVA
It will replace kevintownsend/lite-qemu5:v1 container. Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Change-Id: I96d0f3c3a39dfefac862bc3947a8f6eea7a7f536
-rw-r--r--bullseye-amd64-tf-m-qemu/Dockerfile28
-rwxr-xr-xbullseye-amd64-tf-m-qemu/build.sh13
2 files changed, 41 insertions, 0 deletions
diff --git a/bullseye-amd64-tf-m-qemu/Dockerfile b/bullseye-amd64-tf-m-qemu/Dockerfile
new file mode 100644
index 0000000..3b50c21
--- /dev/null
+++ b/bullseye-amd64-tf-m-qemu/Dockerfile
@@ -0,0 +1,28 @@
+FROM debian:sid-slim
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV PKG_DEPS="\
+ ca-certificates \
+ curl \
+ ipxe-qemu \
+ ovmf \
+ qemu-efi-aarch64 \
+ qemu-efi-arm \
+ qemu-system-arm \
+ qemu-system-x86 \
+ qemu-utils \
+"
+
+RUN set -e ;\
+ apt update -q=2 ;\
+ apt dist-upgrade -q=2 --yes ;\
+ apt install -q=2 --yes --no-install-recommends ${PKG_DEPS} ;\
+ # Set default shell to bash
+ mkdir -p /usr/share/man/man1 ;\
+ echo 'dash dash/sh boolean false' | debconf-set-selections ;\
+ dpkg-reconfigure -p critical dash ;\
+ # Cleanup
+ apt clean ;\
+ rm -rf /var/lib/apt/lists/* /var/tmp/*
+
+CMD ["/bin/bash"]
diff --git a/bullseye-amd64-tf-m-qemu/build.sh b/bullseye-amd64-tf-m-qemu/build.sh
new file mode 100755
index 0000000..59a10db
--- /dev/null
+++ b/bullseye-amd64-tf-m-qemu/build.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+export LANG=C
+
+DISTRIBUTION=$(basename ${PWD} | cut -f1 -d '-')
+ARCHITECTURE=$(basename ${PWD} | cut -f2 -d '-')
+PROJECT=$(basename ${PWD} | cut -d'-' -f3-)
+
+image=trustedfirmware/ci-${ARCHITECTURE}-${PROJECT}-debian:${DISTRIBUTION}
+docker build --pull --tag=$image .
+echo $image > .docker-tag