MockServer is a testing server and proxy that imitates APIs, records and changes network traffic, and deliberately introduces failures. It is for developers testing applications against unavailable dependencies, debugging requests, and checking how systems handle degraded services across several network protocols. The catalogue add-ons help operate, configure, and test MockServer.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/mock-server/mockserver-monorepo/docker-build-pushnpx skills add mock-server/mockserver-monorepo --skill docker-build-pushgit clone --depth 1 https://github.com/mock-server/mockserver-monorepoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mock-server/mockserver-monorepo/docker-build-push)<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/docker-build-push"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/docker-build-push.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00098 | $0.01474 |
| Opus 5 | $0.00049 | $0.00737 |
| Sonnet 5 | $0.00020 | $0.00295 |
| Haiku 4.5 | $0.00010 | $0.00147 |
Grade A, and why
docker-build-push scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build & Push Maven CI Docker Image Locally
Overview
The mockserver/mockserver:maven image is the CI build environment used by Buildkite.
It is normally built and pushed by the Buildkite pipeline .buildkite/docker-push-maven.yml,
but sometimes needs to be built and pushed manually — e.g. when bootstrapping, when
the pipeline isn't set up yet, or when testing Dockerfile changes.
Image: mockserver/mockserver:maven
Dockerfile: docker_build/maven/Dockerfile
Base: Ubuntu 24.04, OpenJDK 21, Maven 3.9.16
Target architecture for CI: linux/amd64 (Buildkite agents run on x86_64 EC2)
Prerequisites
- Docker Desktop installed and running
- Push access to the
mockserver/mockserverDocker Hub repository - Corporate root CA certificate (if behind a TLS inspection proxy)
Step 1: Corporate CA Certificate
The Dockerfile expects a corporate-root-ca.pem file in the build context. If the
file has content, it is injected into the OS and Java trust stores. If empty, it is
skipped.
# Option A: Behind a corporate TLS proxy — copy your CA cert
cp /path/to/your/corporate-root-ca.pem docker_build/maven/corporate-root-ca.pem
# Option B: No proxy — create empty placeholder
cp docker_build/maven/corporate-root-ca.pem.example docker_build/maven/corporate-root-ca.pem
The real .pem file is gitignored. The .pem.example placeholder is committed.
Step 2: Build the Image
Native architecture (quick test)
For a quick local test on the host architecture:
docker build -t mockserver/mockserver:maven docker_build/maven/
This works on both arm64 (Apple Silicon) and amd64. The Dockerfile uses a symlink
trick (dpkg --print-architecture) to set JAVA_HOME portably — no TARGETARCH ARG
needed.
Cross-architecture for CI (amd64 on Apple Silicon)
Buildkite agents run on amd64 EC2 instances. When building on an Apple Silicon Mac, you MUST cross-compile to amd64 before pushing.
IMPORTANT: Use the desktop-linux buildx builder, NOT docker-container builders.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 162 lines · 98 tokens per session scan A d8217542cd97
docker-build-push is a skill published in the GitHub repository mock-server/mockserver-monorepo (4,965 stars, last pushed today), licensed Apache-2.0. It adds 98 tokens to every session and 1,474 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
deployment-patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.
plano-deployment-security
Apply Plano deployment and production security practices. Use for Docker networking, state storage choices, readiness checks, and environment-based secret handling.
konflux-build
Create a manual Konflux build from a PR with configurable image expiry (default 30 days).
devops-deployment
Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.
devops-infrastructure
Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions, planning deployments, setting up monitoring, or when asked about containers, pipelines, Terraform, or production infrastructure.
CI/CD Pipeline Advanced
Expert-level CI/CD pipeline skill for test automation. Covers GitHub Actions, Jenkins, GitLab CI, Azure DevOps, parallel execution, matrix strategies, caching, artifact management, and deployment gates.