giuseppe-trisciuoglio avatar

Wiremock Standalone Docker

Sets up WireMock as a standalone Docker container so you can mock external APIs during integration testing. You get a complete docker-compose config with WireMock 3.5.2, directory structure for mappings and response files, and JSON stubs for the scenarios that actually matter: success responses, 404s, 500s, timeouts, and rate limits. The skill walks you through pointing your app at localhost:8080 instead of real endpoints, then testing all the edge cases your HTTP client needs to handle. It's straightforward if you're tired of flaky tests that depend on external services or need to simulate API failures without breaking production systems.

skills.sh installs
3.5K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill wiremock-standalone-docker --agent claude-code

Installs into .claude/skills of the current project.

Files

WireMock Standalone Docker Skill

Overview

Provides patterns for running WireMock as a standalone Docker container to mock external APIs during integration and end-to-end testing. Runs WireMock as a separate service that simulates real API behavior for testing HTTP clients, retry logic, and error handling.

When to Use

Use when you need to:

  • Mock external APIs during integration or end-to-end testing
  • Simulate error conditions (timeouts, 5xx, rate limiting) without real services
  • Test HTTP client configurations, retry logic, and error handling
  • Create portable, reproducible test environments
  • Validate API contracts before implementing the real service

Instructions

Step 1: Set Up Docker Compose

Create a docker-compose.yml with WireMock 3.5.2, port mapping, and volume mounts for mappings and files:

version: "3.8"
services:
  wiremock:
    image: wiremock/wiremock:3.5.2
    ports:
      - "8080:8080"
    volumes:
      - ./wiremock:/home/wiremock
    command: ["--global-response-templating"]

Step 2: Create Directory Structure

Create the WireMock configuration directories:

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Backend & APIs, Testing & QA, DevOps & CI/CD, Debugging
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102
1dotnet avatarcreate-datadriven-aspnetcoredotnet/skillsGenerate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaf3.5Kskills.sh installs
2netlify avatarnetlify-functionsnetlify/context-and-toolsGuide for writing Netlify serverless functions. Use when creating API endpoints, background processing, scheduled tasks, or any server-side logic using Netlify 3.5Kskills.sh installs
3trailofbits avatardebug-buttercuptrailofbits/skillsDebugs the Buttercup CRS (Cyber Reasoning System) running on Kubernetes. Use when diagnosing pod crashes, restart loops, Redis failures, resource pressure, disk3.5Kskills.sh installs
4minimax-ai avatarfullstack-devminimax-ai/skillsFull-stack backend architecture and frontend-backend integration guide. TRIGGER when: building a full-stack app, creating REST API with frontend, scaffolding ba3.5Kskills.sh installs
5actionbook avatardomain-webactionbook/rust-skillsUse when building web services. Keywords: web server, HTTP, REST API, GraphQL, WebSocket, axum, actix, warp, rocket, tower, hyper, reqwest, middleware, router, 3.4Kskills.sh installs
6openai avatarcli-creatoropenai/skillsBuild a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user 3.3Kskills.sh installs