Sign inSign up

stratoscale/wiremock

By stratoscale

•Updated almost 9 years ago

Alpine based wiremock image, with configurable port. includes curl for health check.

Image
0

10K+

stratoscale/wiremock repository overview

⁠Wiremock Container

For more info about wiremock visit: http://wiremock.org⁠

⁠Dockerfile

FROM java:openjdk-8-jdk-alpine
ENV WIREMOCK_VERSION 2.2.2
RUN apk add --update --no-cache curl
RUN curl -sSL https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/${WIREMOCK_VERSION}/wiremock-standalone-${WIREMOCK_VERSION}.jar -o /wiremock.jar
CMD ["80"]  # Default port
ENTRYPOINT ["java", "-Xmx4g", "-jar", "/wiremock.jar", "--verbose", "--port"]

⁠Usage

⁠Pull latest image

docker pull stratoscale/wiremock

⁠Strart a wiremock container

docker run -p 8080:8080 stratoscale/wiremock 8080

⁠Docker-Compose Usage Example

version: '2.1'

networks:
  tests-network:
    driver: bridge

services:
  mocked.service:
    image: stratoscale/wiremock
    networks: [tests-network]
    command: "9999"

    # [OPTIONAL]
    healthcheck:
      test: "curl -f http://localhost:9999/__admin || false"
      interval: 1s
      retries: 120
...

Tag summary

Content type

Image

Digest

Size

60.7 MB

Last updated

almost 9 years ago

docker pull stratoscale/wiremock