github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/metrics/storage/blogbench_dockerfile/Dockerfile (about) 1 # Copyright (c) 2018 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 FROM public.ecr.aws/lts/ubuntu 9 10 # Version of the Dockerfile 11 LABEL DOCKERFILE_VERSION="1.0" 12 13 # URL for blogbench test and blogbench version 14 ENV BLOGBENCH_URL "https://download.pureftpd.org/pub/blogbench" 15 ENV BLOGBENCH_VERSION 1.1 16 17 RUN apt-get update && \ 18 apt-get install -y build-essential curl && \ 19 apt-get remove -y unattended-upgrades && \ 20 curl -OkL ${BLOGBENCH_URL}/blogbench-${BLOGBENCH_VERSION}.tar.gz && \ 21 tar xzf blogbench-${BLOGBENCH_VERSION}.tar.gz && \ 22 cd blogbench-${BLOGBENCH_VERSION} && \ 23 export arch=$(uname -m) && \ 24 ./configure --build=${arch} && \ 25 make && \ 26 make install-strip 27 28 CMD ["/bin/bash"]