wg / wrk

Modern HTTP benchmarking tool
Other
38.1k stars 2.95k forks source link

Add Dockerfile #492

Open pataquets opened 2 years ago

pataquets commented 2 years ago

Enables development and testing with just Docker installed. Also, it can be used to run in production straight away, although it's not only optimized for that usage (eg. image size). Useful for building and running the latest HEAD (or whatever branch, tag or commit id you specify) straight from source by just issuing a one-liner (see below) without any requirement other than Docker.

Image builds code on gcc base image, latest tag.

To test the build locally, issue the following:

docker build --force-rm --pull github.com/pataquets/wrk#add-dockerfile -t wrk

To run a container from the built image, issue the following:

docker run --rm -it wrk <options> <url>