summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/workloads/ab/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/workloads/ab/Dockerfile')
-rw-r--r--benchmarks/workloads/ab/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/benchmarks/workloads/ab/Dockerfile b/benchmarks/workloads/ab/Dockerfile
new file mode 100644
index 000000000..0d0b6e2eb
--- /dev/null
+++ b/benchmarks/workloads/ab/Dockerfile
@@ -0,0 +1,15 @@
+FROM ubuntu:18.04
+
+RUN set -x \
+ && apt-get update \
+ && apt-get install -y \
+ apache2-utils \
+ && rm -rf /var/lib/apt/lists/*
+
+# Parameterized workload.
+ENV requests 5000
+ENV connections 10
+ENV host localhost
+ENV port 8080
+ENV path notfound
+CMD ["sh", "-c", "ab -n ${requests} -c ${connections} http://${host}:${port}/${path}"]