Spring Cloud Contract Stub Runner
1.3K
This is base Docker image to run stubs created with Spring Cloud Contract.
The project repository is: Docker image to run stubs created with Spring Cloud Contract.
The version corresponds to the version of Spring Cloud Contract Stub Runner.
You can use the Dockerfile in the docker-images folder as a base.
For this example we will use the stubs created with the project contract-testing-demo.
STUBS_GROUP_ID - Project group Id, default value is org.exampleSTUBS_ARTIFACT_ID - Project artifact Id, default value is untitledSTUBS_VERSION - Artifact version, default value is 1.0-SNAPSHOTSTUBS_FOLDER - It is the folder in which the stubs will be copied, its value is the same as STUBS_PACKAGE replacing the points (.) with a slash (/), default value is org/exampleSTUBRUNNER_PORT - The port on which the stubs will run, default is a random port$ docker build --tag my-catalog-stubs .
$ docker run --rm --name my-catalog-stubs -p 8080:8080 my-catalog-stubs
$ curl -i localhost:8080/products
Content type
Image
Digest
sha256:97330d768…
Size
314.8 MB
Last updated
over 2 years ago
docker pull ismail2ov/spring-cloud-contract-stub-runner:4.1.2