Sign inSign up

datawiseio/fio

By datawiseio

Updated about 10 years ago

Image
2

100K+

datawiseio/fio repository overview

Dockfile

FROM ubuntu:vivid

MAINTAINER Chakravarthy Nelluri <[email protected]>

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}

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

[randwritejob]

Tag summary

Content type

Image

Digest

sha256:afc1bbbd3

Size

82.9 MB

Last updated

over 10 years ago

docker pull datawiseio/fio