navyakanu / wiremock-docker

Wiremock Docker image

Home Page:https://hub.docker.com/r/rodolpheche/wiremock/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • Clone the repo
cd wiremock-docker

docker build -t wiremock_sample .

docker run -d --name wiremock-container -it --rm -p 8084:8080 wiremock_sample
  • Access [http://localhost:8084/hello] to show contents of the hello.json
  • Mocked some of the trello API's

***************************************** Extras *************************************

  • To proxy and get the sample mocks recorded

docker run -d --name wiremock-container -p 8084:8080 -v $PWD/recordings:/home/wiremock -u $(id -u):$(id -g) wiremock_sample --proxy-all="http://wiremock.org" --record-mappings --verbose

Run in CI or in one command

		sh start_mockserver.sh

About

Wiremock Docker image

https://hub.docker.com/r/rodolpheche/wiremock/


Languages

Language:Shell 76.5%Language:Dockerfile 23.5%