# Copyright (c) 2024 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # Set up an Ubuntu image with 'phoronix-test-suite' installed FROM ubuntu:22.04 LABEL DOCKERFILE_VERSION="1.0" ENV PHORONIX_TAR_URL="https://phoronix-test-suite.com/releases/" ENV PHORONIX_VER="phoronix-test-suite-10.8.4.tar.gz" ENV PHORONIX_CFG="/usr/share/phoronix-test-suite/pts-core/static/user-config-defaults.xml" ENV DEBIAN_FRONTEND noninteractive ENV DEBCONF_NONINTERACTIVE_SEEN true SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN apt-get update && \ apt-get install -y --no-install-recommends git curl build-essential autoconf && \ apt-get install -y --no-install-recommends php libapache2-mod-php php-bz2 php-gd php-sqlite3 php-xml && \ apt-get install -y --no-install-recommends cmake cmake-data mesa-utils vulkan-tools unzip apt-file && \ curl -OkL ${PHORONIX_TAR_URL}/${PHORONIX_VER} && \ tar zxf ${PHORONIX_VER} && cd phoronix-test-suite && ./install-sh && \ apt-get clean && rm -rf /var/lib/apt/lists && \ rm -f ${PHORONIX_VER} && \ if [ -n "$http_proxy" ] ; then \ sed -i "s||$(getent hosts "$(echo $http_proxy | sed 's~http[s]*://~~g' | sed -e 's/:[0-9]*//g')" | awk '{ print $1 }')|g" ${PHORONIX_CFG} ; \ sed -i "s||$(echo $http_proxy | sed 's/^.*://g')|g" ${PHORONIX_CFG} ; \ fi && \ sed -i "s|TRUE|FALSE|g" ${PHORONIX_CFG} && \ sed -i "s|TRUE|FALSE|g" ${PHORONIX_CFG} && \ sed -i "s|TRUE|FALSE|g" ${PHORONIX_CFG} && \ sed -i "s|TRUE|FALSE|g" ${PHORONIX_CFG} && \ sed -i "s|FALSE|TRUE|g" ${PHORONIX_CFG} && \ sed -i "s|20|2|g" ${PHORONIX_CFG} && \ sed -i "s|FALSE|TRUE|g" ${PHORONIX_CFG} && \ phoronix-test-suite download-test-files onednn && \ phoronix-test-suite install-dependencies onednn && \ phoronix-test-suite install onednn && \ sed -i "s/FALSE/TRUE/g" ${PHORONIX_CFG} && \ sed -i "s/20/3/g" ${PHORONIX_CFG} CMD ["/bin/bash"]