Describe the bug
Per https://docs.spring.io/spring-cloud-contract/docs/current/reference/html/docker-project.html#docker-stubrunner
If you want use the stubs that you have built locally, on your host, you should set the -e STUBRUNNER_STUBS_MODE=LOCAL environment variable and mount the volume of your local m2 (-v "${HOME}/.m2/:/home/scc/.m2:ro").
However doing that with an empty repository prevents the runner from starting, as it's trying to write there
Sample
Running Spring Cloud Contract Stub Runner
Please wait for the dependencies to be downloaded...
Exception in thread "main" java.lang.IllegalStateException: Cannot create directory for library at /home/scc/.m2/repository/org/springframework/boot/experimental/spring-boot-thin-launcher/1.0.30.RELEASE/spring-boot-thin-launcher-1.0.30.RELEASE-exec.jar
at org.springframework.boot.loader.wrapper.ThinJarWrapper.download(ThinJarWrapper.java:169)
at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:129)
at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107)
Describe the bug
Per https://docs.spring.io/spring-cloud-contract/docs/current/reference/html/docker-project.html#docker-stubrunner
However doing that with an empty repository prevents the runner from starting, as it's trying to write there
Sample