Skip to content

janjaali/hoverfly-dockerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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