summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/workloads/curl/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/workloads/curl/Dockerfile')
-rw-r--r--benchmarks/workloads/curl/Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/workloads/curl/Dockerfile b/benchmarks/workloads/curl/Dockerfile
new file mode 100644
index 000000000..336cb088a
--- /dev/null
+++ b/benchmarks/workloads/curl/Dockerfile
@@ -0,0 +1,14 @@
+FROM ubuntu:18.04
+
+RUN set -x \
+ && apt-get update \
+ && apt-get install -y \
+ curl \
+ && rm -rf /var/lib/apt/lists/*
+
+# Accept a host and port parameter.
+ENV host localhost
+ENV port 8080
+
+# Spin until we make a successful request.
+CMD ["sh", "-c", "while ! curl -v -i http://$host:$port; do true; done"]