Sign inSign up

carlosroman/wiremock

By carlosroman

•Updated about 9 years ago

Docker image of WireMock, a flexible API mocking tool for fast, robust and comprehensive testing.

Image
1

8.3K

carlosroman/wiremock repository overview

⁠Wiremock Docker File

Wiremock Dockerfile for wiremock Docker builds.

⁠Installation

You can install the image from Docker Hub by running: docker pull carlosroman/wiremock

⁠Usage
   $ docker run -d -p 8080:8080 carlosroman/wiremock
⁠Using wiremock

Once the server has started you can give it a spin by setting up a stub mapping via the JSON API:

$ curl -X POST --data '{ "request": { "url": "/get/this", "method": "GET" }, "response": { "status": 200, "body": "Here it is!\n" }}' http://localhost:8080/__admin/mappings/new

Then fetching it back:

$ curl http://localhost:8080/get/this
Here it is!
⁠Shutting Down

To shutdown the server post the following using curl:

$ curl -X POST --data '' localhost:8080/__admin/shutdown

Tag summary

Content type

Image

Digest

Size

87.2 MB

Last updated

about 9 years ago

docker pull carlosroman/wiremock