From 8e7d9926e44637850b4710e916c77fca766a0ac9 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Tue, 18 Jul 2023 16:33:55 +0000 Subject: [PATCH] metrics: Add C-Ray Dockerfile This PR adds the C-Ray Dockerfile for kata metrics. Signed-off-by: Gabriela Cervantes --- tests/metrics/disk/c-ray/Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/metrics/disk/c-ray/Dockerfile diff --git a/tests/metrics/disk/c-ray/Dockerfile b/tests/metrics/disk/c-ray/Dockerfile new file mode 100644 index 0000000000..41db08b7ac --- /dev/null +++ b/tests/metrics/disk/c-ray/Dockerfile @@ -0,0 +1,26 @@ +# Copyright (c) 2023 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 + +# Usage: FROM [image name] +FROM ubuntu:20.04 + +# Version of the Dockerfile +LABEL DOCKERFILE_VERSION="1.0" + +ENV DEBIAN_FRONTEND=noninteractive + +# URL for c-ray benchmark +ENV CRAY_URL "http://www.phoronix-test-suite.com/benchmark-files/c-ray-1.1.tar.gz" + +RUN apt-get update && \ + apt-get install -y --no-install-recommends build-essential gcc curl && \ + apt-get remove -y unattended-upgrades && \ + curl -OkL "${CRAY_URL}" && \ + tar -zxvf c-ray-1.1.tar.gz && \ + cd c-ray-1.1 && \ + cc -o c-ray-mt c-ray-mt.c -lm -lpthread && \ + make && \ + make install + +CMD ["/bin/bash"]