From 8c75c2f4bd2a750fb98b94da5f5c24856f5636c6 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 10 Jul 2023 16:40:38 +0000 Subject: [PATCH] metrics: Update blogbench Dockerfile This PR udpates the blogbench dockerfile to have non interactive mode. Signed-off-by: Gabriela Cervantes --- tests/metrics/storage/blogbench.sh | 4 ++-- tests/metrics/storage/blogbench_dockerfile/Dockerfile | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/metrics/storage/blogbench.sh b/tests/metrics/storage/blogbench.sh index f163b2f0e..4146ecba3 100755 --- a/tests/metrics/storage/blogbench.sh +++ b/tests/metrics/storage/blogbench.sh @@ -27,7 +27,7 @@ ITERATIONS="${ITERATIONS:-30}" # Directory to run the test on # This is run inside of the container -TESTDIR="${TESTDIR:-/tmp}" +TESTDIR="${TESTDIR:-/home}" CMD="blogbench -i ${ITERATIONS} -d ${TESTDIR}" function main() { @@ -39,7 +39,7 @@ function main() { check_ctr_images "${IMAGE}" "${DOCKERFILE}" metrics_json_init - local output=$(sudo -E "${CTR_EXE}" run --rm --runtime="${CTR_RUNTIME}" "${IMAGE}" test "${CMD}") + local output=$(sudo -E ${CTR_EXE} run --rm --runtime=${CTR_RUNTIME} ${IMAGE} test ${CMD}) # Save configuration metrics_json_start_array diff --git a/tests/metrics/storage/blogbench_dockerfile/Dockerfile b/tests/metrics/storage/blogbench_dockerfile/Dockerfile index 593063798..08d06cec5 100644 --- a/tests/metrics/storage/blogbench_dockerfile/Dockerfile +++ b/tests/metrics/storage/blogbench_dockerfile/Dockerfile @@ -11,6 +11,8 @@ FROM docker.io/library/ubuntu:latest # Version of the Dockerfile LABEL DOCKERFILE_VERSION="1.0" +ENV DEBIAN_FRONTEND=noninteractive + # URL for blogbench test and blogbench version ENV BLOGBENCH_URL "https://download.pureftpd.org/pub/blogbench" ENV BLOGBENCH_VERSION 1.1