Wiremock Container
Simulate external system responses to assist with the development of integration features. This service is only depoyed on test environments when actual integrations are not implemented.
Prerequisites
The mock
container image must be built and available. For information on building container images, see Building Container Images.
Suitable Environment Types
The Mock application is only used for application testing and is only deployed in development or test environments.
Include in Development and QA Environments? | Include in Authoring Environments? | Include in Live Environments? |
---|---|---|
Optional | No | No |
Configuration
The sections below describe typical configurations.
Note about production sizing and tuning
The values shared in this document are suggestions that are known to work well in typical scenarios.
Resource allocation
Resource allocation can vary by usage and load. Below are typical values.
Resource | Non Production | Production Like (See Note) |
---|---|---|
Container Memory (MB) | 768 | N/A |
Container Cores | 0.25 | N/A |
Java Heap (MB) | N/A | N/A |
Scaling and replicas
This service is stateful and should not be scaled to maintain a consistent user experience.
Configuration | Non Production | Production Like (See Note) |
---|---|---|
Minumim Replicas | 1 | N/A |
Maximum Replicas | 1 | N/A |
Max Surge (%) | 25 | N/A |
Max Unavailable (%) | 25 | N/A |
Ports
Port | Non Production | Production | Purpose | Comment |
---|---|---|---|---|
8080 | Yes | N/A | Allows other Commerce services to communicate with Wiremock. | This port should only be exposed to the Commerce services in the same environment. |
8180 | Yes | N/A | Health and liveness checks. | This port should only be exposed internally, ideally only to the container orchestrator. |
8888 | Optional | N/A | JMX | The container listens on this port when the ENABLE_JMX environment variable is set to true . This port should only be exposed internally to users and tools that require access to JMX data. |
1081 | Optional | N/A | Java debugger. | The container listens on this port when the ENABLE_DEBUG environment variable is set to true . This port should only be exposed internally, to developers who debug Java application code. This port is typically not open in production. |
Health, Liveness and Readiness
Container orchestration tools monitor the health and responsiveness of containers. For information about supported endpoints, see Health Monitoring Usage.
Volumes
The Mock application does not have specific support or recommendations for volumes.
Environment Variables
The Mock application has limited configurability and does not support the environment variables used by other Commerce applications.