mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
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:
parent
49723a9ecf
commit
8c75c2f4bd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user