Sign inSign up

hawkularqe/web-fixture

By hawkularqe

Updated over 11 years ago

Image
0

513

hawkularqe/web-fixture repository overview

Basic Usage

# launch web-fixture
docker run -d -p 8999:8080 hawkularqe/web-fixture

# get custom http code
curl -I http://localhost:8999/http?return=503
--> HTTP/1.1 503 Service Temporarily Unavailable

curl -I http://localhost:8999/http?return=405
--> HTTP/1.1 405 Not Allowed

Simulate downtime

Pass in an optional cron expression and time-to-live

# Server goes offline for 10 seconds every minute
docker run -p 8999:8080 -e "DURATION=50s" -e "CRON_EXP=* * * * *" hawkularqe/web-fixture

Tag summary

Content type

Image

Digest

sha256:8c438766d

Size

66.5 MB

Last updated

almost 11 years ago

docker pull hawkularqe/web-fixture