github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/metrics/disk/c-ray/Dockerfile (about) 1 # Copyright (c) 2023 Intel Corporation 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 5 # Usage: FROM [image name] 6 FROM ubuntu:20.04 7 8 # Version of the Dockerfile 9 LABEL DOCKERFILE_VERSION="1.0" 10 11 ENV DEBIAN_FRONTEND=noninteractive 12 13 # URL for c-ray benchmark 14 ENV CRAY_URL "http://www.phoronix-test-suite.com/benchmark-files/c-ray-1.1.tar.gz" 15 16 RUN apt-get update && \ 17 apt-get install -y --no-install-recommends build-essential gcc curl && \ 18 apt-get remove -y unattended-upgrades && \ 19 curl -OkL "${CRAY_URL}" && \ 20 tar -zxvf c-ray-1.1.tar.gz && \ 21 cd c-ray-1.1 && \ 22 cc -o c-ray-mt c-ray-mt.c -lm -lpthread && \ 23 make && \ 24 make install 25 26 CMD ["/bin/bash"] 27