Public Repository

Last pushed: a month ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile

FROM ubuntu:vivid

MAINTAINER Support support@diamanti.com

RUN apt-get update -yq && apt-get install -yq fio

RUN mkdir /data
RUN mkdir /config

ADD job.fio /config/

ADD start.sh /start.sh

ENTRYPOINT ["/start.sh"]

start.sh

#!/bin/bash

export FIO_JOB_FILE=${FIO_JOB_FILE:-/config/job.fio}
export JOB_NAME=${JOB_NAME:-fio}
export NJ=${NJ:-8}
export QD=${QD:-16}
export BLOCK_SIZE=${BLOCK_SIZE:-4k}
export DEV=${DEV:-/data/testfile}
export DIRECT=${DIRECT:-1}
export SIZE=${SIZE:-5g}
export RW=${RW:-read}
export RT=${RT:-300}
export RWRPCT=${RWRPCT:-100}
export RWWPCT=$((100-${RWRPCT}))

exec /usr/bin/fio $FIO_JOB_FILE --output /data/${JOB_NAME}.out

job.fio

[global]
ioengine=libaio
rw=${RW}
numjobs=${NJ}
direct=${DIRECT}
bs=${BLOCK_SIZE}
filename=${DEV}
runtime=${RT}
time_based=1
iodepth=${QD}
size=${SIZE}
group_reporting
rwmixread=${RWRPCT}
rwmixwrite=${RWWPCT}

[randwritejob]

Docker Pull Command
Owner
diamanti

Comments (0)