Docker images for easily running standalone WireMock, supporting both JRE8 and JRE11 runtimes.
The image exposes port 8080
and 8443
– to enable HTTPS, you need the WireMock --https-port
command line option.
WireMock mapping files go in /home/wiremock
, which is exposed as a volume.
The JRE8 version is useful if you're in a conservative organisation, whereas the JRE11 is useful if you have more up-to-date codebases – especially if you need to use WireMock extensions as part of your projects, and cannot or do not want to build those specifically for JRE8.
The images are based on AdoptOpenJDK, since they have Alpine versions of both JRE8 and JRE11. OpenJDK has an Alpine version for JRE8 (which is smaller than AdoptOpenJDK!), but none for JRE11.
The WireMock artifact used is wiremock-jre8-standalone
, quoting WireMock
Download and Installation:
The Java 8+ build endeavours to track the latest version of all its major dependencies. This is usually the version you should choose by default.
- Add 'getting started' and perhaps samples – using as base container vs mount points.
- Clean up build scripts and Docker Hub hooks.
- See if it's possible to shrink JRE11 image with
jlink
. Might not be viable on Alpine, and could limit what's possible to do with extensions.