Start wiremock standalone
- navigate to dmi-plugin-perf-stub folder in cps project
- use ./start.sh command to run wiremock
start.sh:
start.sh
docker run -it --rm -p 8783:8080 -v "$(pwd)"/mappings:/home/wiremock/mappings -v "$(pwd)"/files:/home/wiremock/__files --name wiremock wiremock/wiremock:2.33.2 --verbose
Use wiremock in docker-compose
put this code in your docker-compose.yaml
services.yaml
sdnc: container_name: sdnc image: wiremock/wiremock:2.33.2 ports: - 8783:8783 # it is not necessary, just when you want to reach it outside the composed docker system volumes: - <cps project folder>/dmi-plugin-perf-stub/mappings:/home/wiremock/mappings - <cps project folder>/dmi-plugin-perf-stub/files:/home/wiremock/__files command: ["--verbose", "--port", "8783"]