Skip to content

A simple container that can execute curl requests continuously from a configurable list of http requests

License

Notifications You must be signed in to change notification settings

fabien-sanglier-ibm/continuous-curl-runner

Repository files navigation

continuous-curl-runner

A simple container that can execute curl requests continuously from a configurable list of http requests

Usage

Provide the following ENV vars:

  • REQUESTS_INTERVAL - The interval in seconds between curl requests (type: number, default: 5)
  • REQUESTS_SELECTION - The type of request selection from the possible list of requests (type: string, default: random)
    • possible values: random, all
  • REQUESTS_JSON - The list of requests in JSON format (type: string/json, default: "[]")

Build the image

docker-compose build

Run using Docker-compose

REQUESTS_JSON=$(cat sample-requests.json) docker-compose up  

About

A simple container that can execute curl requests continuously from a configurable list of http requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published