Sign inSign up
wiremock logo

stden/wiremock

By stden

•Updated 1 day ago

Mock HTTP services for integration tests with WireMock.

Image
Languages & frameworks
Integration & delivery
Developer tools
0

448

stden/wiremock repository overview

⁠stden/wiremock

Mock HTTP services for integration tests with WireMock.

⁠What you learn

You learn to use wiremock in a Docker container.

⁠Contents

  • WireMock standalone server on port 8080
  • Admin API at /__admin/
  • A pre-loaded /demo stub that returns {"status": "ok"}

⁠Tags

TagMeaningPlatform
latestLatest successful main buildlinux/amd64

View tags and image digests⁠.

⁠Pull and run

docker pull stden/wiremock:latest
docker run -d -p 127.0.0.1:8080:8080 --name wiremock stden/wiremock:latest

Check the demo stub:

curl http://127.0.0.1:8080/demo

List all mappings:

curl http://127.0.0.1:8080/__admin/mappings

Add a new stub at runtime:

curl -X POST http://127.0.0.1:8080/__admin/mappings \
  -H 'Content-Type: application/json' \
  -d '{"request":{"url":"/hello"},"response":{"body":"world"}}'

⁠Checks and source

CI builds the image and verifies WireMock starts. The local test starts WireMock, calls the /demo stub, and checks the admin API.

Dockerfile⁠ · Docker tutorial⁠ · Build results⁠

Tag summary

Content type

Image

Digest

sha256:f14d2a899…

Size

121.3 MB

Last updated

1 day ago

docker pull stden/wiremock