forked from t0t0/docker-phoronix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (23 loc) · 775 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#####################
# Bench Dockerfile #
#####################
# Set the base image
FROM alpine
# File Author / Maintainer
MAINTAINER Ian Allison
# Install dependencies
RUN apk update && apk add --no-cache make gcc g++ libtool linux-headers perl pcre-dev php5 php5-dom php5-zip php5-json
# Download & extract Phoronix package
RUN wget http://www.phoronix-test-suite.com/download.php?file=phoronix-test-suite-6.2.2 -O phoronix-test-suite.tar.gz
RUN tar xzf phoronix-test-suite.tar.gz
RUN rm -f phoronix-test-suite.tar.gz
RUN cd phoronix-test-suite && ./install-sh
# Install predefined tests
## Disk
RUN phoronix-test-suite install pts/iozone
# Install expect
RUN apk add expect
# Copy custom scripts
COPY scripts/ .
# Begin benchmark script
CMD /phoronix.expect