FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt install -y \
    apt-utils \
    libzip-dev \
    nano \
    php7.4-zip \
    wget

RUN wget http://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_10.4.0_all.deb && \
    apt install -y ./phoronix-test-suite_10.4.0_all.deb

RUN phoronix-test-suite install pts/osbench \
                                pts/pybench \
                                pts/tiobench \
                                pts/ramspeed \
                                pts/compress-7zip \
                                pts/openssl \
                                pts/sockperf

COPY hardware/suite-definition.xml /var/lib/phoronix-test-suite/test-suites/local/hardware/suite-definition.xml
