github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/metrics/storage/blogbench_dockerfile/Dockerfile.in (about) 1 # Copyright (c) 2018-2021 Intel Corporation 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 5 # Set up an Ubuntu image with 'blogbench' installed 6 7 # Usage: FROM [image name] 8 # hadolint ignore=DL3007 9 FROM @UBUNTU_REGISTRY@/ubuntu:latest 10 11 # Version of the Dockerfile 12 LABEL DOCKERFILE_VERSION="1.0" 13 14 # URL for blogbench test and blogbench version 15 ENV BLOGBENCH_URL "https://download.pureftpd.org/pub/blogbench" 16 ENV BLOGBENCH_VERSION 1.1 17 18 RUN apt-get update && \ 19 apt-get install -y --no-install-recommends build-essential curl && \ 20 apt-get remove -y unattended-upgrades && \ 21 apt-get clean && \ 22 rm -rf /var/lib/apt/lists/ && \ 23 curl -OkL "${BLOGBENCH_URL}/blogbench-${BLOGBENCH_VERSION}.tar.gz" && \ 24 tar xzf "blogbench-${BLOGBENCH_VERSION}.tar.gz" -C / 25 WORKDIR "/blogbench-${BLOGBENCH_VERSION}" 26 RUN arch="$(uname -m)" && \ 27 export arch && \ 28 ./configure --build="${arch}" && \ 29 make && \ 30 make install-strip 31 32 CMD ["/bin/bash"]