https://github.com/janjaali/hoverfly-dockerized
https://hub.docker.com/r/ghashange/hoverfly/
https://github.com/janjaali/hoverfly-dockerized
docker hoverfly
Last synced: 10 months ago
JSON representation
https://hub.docker.com/r/ghashange/hoverfly/
- Host: GitHub
- URL: https://github.com/janjaali/hoverfly-dockerized
- Owner: janjaali
- Created: 2018-06-24T09:16:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T21:09:32.000Z (about 5 years ago)
- Last Synced: 2025-02-09T09:43:08.835Z (about 1 year ago)
- Topics: docker, hoverfly
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](example/simulation.json).
To run hoverfly in simulation mode for a provided simulation file just run:
```shell
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**](https://hoverfly.readthedocs.io/en/latest/pages/introduction/downloadinstallation.html) 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.json`[hoverfly-tutorial](https://hoverfly.readthedocs.io/en/latest/pages/tutorials/basic/exportingsimulations/exportingsimulations.html):
```shell
hoverctl start
hoverctl mode capture
curl --proxy http://localhost:8500 http://time.jsontest.com
hoverctl export simulation.json
```
[docker]: https://www.docker.com
[hoverfly]: https://hoverfly.readthedocs.io/en/latest/