kata-containers/tests/metrics/storage/blogbench_dockerfile/Dockerfile
Gabriela Cervantes 8c75c2f4bd 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>
2023-07-12 20:37:27 +00:00

35 lines
954 B
Docker

# Copyright (c) 2018-2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
# Set up an Ubuntu image with 'blogbench' installed
# Usage: FROM [image name]
# hadolint ignore=DL3007
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
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential curl && \
apt-get remove -y unattended-upgrades && \
apt-get clean && \
rm -rf /var/lib/apt/lists/ && \
curl -OkL "${BLOGBENCH_URL}/blogbench-${BLOGBENCH_VERSION}.tar.gz" && \
tar xzf "blogbench-${BLOGBENCH_VERSION}.tar.gz" -C /
WORKDIR "/blogbench-${BLOGBENCH_VERSION}"
RUN arch="$(uname -m)" && \
export arch && \
./configure --build="${arch}" && \
make && \
make install-strip
CMD ["/bin/bash"]