Files
gvisor/benchmarks/workloads/netcat/Dockerfile
T
Zach Koopmans ce32c06843 Import benchmark-tools to main repository.
This has adapted for use with bazel from the original commit
a26e93769ebefd82593a43e22fb13a09717cfa6d.

In particular, the style has been made consistent with internal python style
guidelines, and the packages (including the main entrypoint) have been
refactored in order to allow bazel testing targets.

PiperOrigin-RevId: 283484433
2019-12-02 22:53:26 -08:00

15 lines
328 B
Docker

FROM ubuntu:18.04
RUN set -x \
&& apt-get update \
&& apt-get install -y \
netcat \
&& 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 ! nc -zv $host $port; do true; done"]