/docker-vegeta

Dockerfile for Vegeta Load Testing Tool

Primary LanguageDockerfileBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Vegeta Docker

Docker image for the Vegeta HTTP load testing tool.

Usage

To build image:

docker build -t docker-vegeta .

To run:

docker run -d -p 8000:80 --name vegeta vegeta:1.0

Api Usage

Simple Request:

curl --location --request POST 'http://vegeta-server/api/v1/attack' \
--header 'Content-Type: application/json' \
--data-raw '{
    "rate": 10,
    "duration": "10s",
    "target": {
        "method": "GET",
        "URL": "http://some.host./and/end/point",
        "scheme": "http"
    }
}
'

Documentation - Vegeta RestApi