Sign inSign up

ghashange/hoverfly

By ghashange

•Updated over 6 years ago

Run hoverfly in webserver mode.

Image
0

8.9K

ghashange/hoverfly repository overview

⁠Hoverfly (docker image)

Simple docker⁠ image for running hoverfly⁠ in webserver mode.

This image requires a simulation.json to be provided in /var/hoverfly to setup the webserver. An example simulation.json can be found in example/simulation.json⁠.

To run hoverfly in simulation mode for a provided simulation file just run:

docker run -it -p 8888:8888 -p 8500:8500 -v example:/var/hoverfly/ ghashange/hoverfly:latest

⁠Create a simulation.json

A local installation of hoverctl⁠ is needed for this.

The simplest and most efficient way to get a simulation.json covering your needs is to use hoverfly as proxy in capture-mode to extract afterwards your request-responses into a newly created awesome looking clean simulation.jsonhoverfly-tutorial⁠:

hoverctl start
hoverctl mode capture
curl --proxy http://localhost:8500 http://time.jsontest.com
hoverctl export simulation.json

Tag summary

Content type

Image

Digest

Size

109.4 MB

Last updated

over 6 years ago

docker pull ghashange/hoverfly