Unable to pactVerify in docker against Spring Boot
See original GitHub issueSee docker_*.sh
in project on github.
I have a Spring Boot project in Kotlin, and (in the same repo) a test consumer to verify pacts against (in Groovy, but in a separate project).
In docker: I can build test
the provider, and build check pactPublish
the consumer, uploading the Pactfile to the SaaS broker.
But when I try to run pactVerify
I get a JVM SIGSEGV
. This happens in every JDK flavour I’ve tried so far, including: openjdk:8
, cogniteev/oracle-java:java8
, and frolvlad/alpine-oraclejdk8
.
These are the last few console lines before the fault:
:compileTestKotlin UP-TO-DATE
:compileTestJava NO-SOURCE
:copyTestKotlinClasses UP-TO-DATE
:processTestResources NO-SOURCE
:testClasses UP-TO-DATE
:pactVerify_Coffee Ordering Provider
And attached are a couple of dumps, maybe they’ll help 😃
hs_err_pid5.txt hs_err_pid8.txt
This is using gradle 3.4.1, from app/gradle/wrapper/gradle-wrapper.properties
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Unable to pactVerify in docker against Spring Boot #414
See docker_*.sh in project on github. I have a Spring Boot project in Kotlin, and (in the same repo) a test consumer to...
Read more >Not able to connect to docker image with a spring boot ...
Your application seems fine, and it seems you can access it from within the container with localhost as per your comment:
Read more >Any example of gradle task to startApp(spring boot app) in ...
An issue I am facing is with gradle task startApp using bootRun{} it starts the app and waits/hangs and doesn't come to pactVerify...
Read more >Contract Test Using Dockerized Pact Broker - Automationcalling
View Diff for failure results between Consumer and Provider test. In this blog, we are going to take a look at how to...
Read more >Topical Guide | Spring Boot Docker
There is also a Getting Started Guide on Docker, which would also be a good starting point, ... This fails because the ${}...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, you need a
-Dpact.colors.enabled=false
that does just thatGreat workaround \o/ My build is green now 😄