metrics: Update blogbench Dockerfile

This PR udpates the blogbench dockerfile to have non interactive mode.

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes 2023-07-10 16:40:38 +00:00
parent 49723a9ecf
commit 8c75c2f4bd
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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