summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/workloads/sysbench/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/workloads/sysbench/Dockerfile')
-rw-r--r--benchmarks/workloads/sysbench/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmarks/workloads/sysbench/Dockerfile b/benchmarks/workloads/sysbench/Dockerfile
new file mode 100644
index 000000000..8225e0e14
--- /dev/null
+++ b/benchmarks/workloads/sysbench/Dockerfile
@@ -0,0 +1,16 @@
+FROM ubuntu:18.04
+
+RUN set -x \
+ && apt-get update \
+ && apt-get install -y \
+ sysbench \
+ && rm -rf /var/lib/apt/lists/*
+
+# Parameterize the tests.
+ENV test cpu
+ENV threads 1
+ENV options ""
+
+# run sysbench once as a warm-up and take the second result
+CMD ["sh", "-c", "sysbench --threads=8 --memory-total-size=5G memory run > /dev/null && \
+sysbench --threads=${threads} ${options} ${test} run"]