summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/workloads/fio/Dockerfile
blob: b3cf864eb51f7cb7ba5d676d9472a70c07b4cc2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:18.04

RUN set -x \
        && apt-get update \
        && apt-get install -y \
            fio \
        && rm -rf /var/lib/apt/lists/*

# Parameterized test.
ENV test write
ENV ioengine sync
ENV size 5000000
ENV iodepth 4
ENV blocksize "1m"
ENV time ""
ENV path "/disk/file.dat"
ENV ramp_time 0

CMD ["sh", "-c", "fio --output-format=json --name=test --ramp_time=${ramp_time} --ioengine=${ioengine} --size=${size} \
--filename=${path} --iodepth=${iodepth} --bs=${blocksize} --rw=${test} ${time}"]