spring-cloud / spring-cloud-contract

Support for Consumer Driven Contracts in Spring
https://cloud.spring.io/spring-cloud-contract
Apache License 2.0
720 stars 439 forks source link

spring-cloud-contract docker image for linux/arm64/v8 platform (Mac M1) #2100

Open prasanna0586 opened 9 months ago

prasanna0586 commented 9 months ago

For polyglot contract testing, I am using the springcloud/spring-cloud-contract docker image. I am unable to run tests in my Mac M1. It just hangs while client stubs are getting generated (Task :generateClientStubs). It is because the image is only built for linux/amd64 platform. I see the below warning in my console

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Can you please provide an image for linux/arm64/v8 platform? Right now I am forced to use a compatible machine to run my tests.

marcingrzejszczak commented 6 months ago

Hey, I've marked this as an enhancement request. BTW can you elaborate how exactly you're using SCC for polyglot testing?