/
Dockerfile
23 lines (21 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian
MAINTAINER David Personette <dperson@gmail.com>
# Install PTS
RUN export DEBIAN_FRONTEND='noninteractive' && \
export url='http://phoronix-test-suite.com/releases/' && \
export version='9.8.0' && \
export sha256sum='5803408cb209b0b9e0e4f2bae746f252f0a793b2f88212a7f6b5' && \
apt-get update -qq && \
apt-get install -qqy --no-install-recommends ca-certificates curl \
build-essential unzip mesa-utils php7.3-cli php7.3-gd \
php7.3-json php7.3-xml procps \
$(apt-get -s dist-upgrade|awk '/^Inst.*ecurity/ {print $2}') &&\
echo "downloading phoronix-test-suite-${version}.tar.gz ..." && \
curl -LSs "${url}phoronix-test-suite-${version}.tar.gz" -o pts.tgz && \
sha256sum pts.tgz | grep -q "$sha256sum" || \
{ echo "expected $sha256sum, got $(sha256sum pts.tgz)"; exit 13; } && \
tar xf pts.tgz && \
(cd phoronix-test-suite && ./install-sh) && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* phoronix-test-suite pts.tgz
CMD phoronix-test-suite