J
07/12/2022, 11:29 AM# /root/.pact/plugins/protobuf-0.1.7/pact-protobuf-plugin
Error: Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" }
This happens on the maven:3-openjdk-17-slim (and other maven images) and also on ubuntu:latest. I think there is an issue with the plug-in attempting to bind ::1
, an IPv6 address, which is not supported in containers by default.
Is there a workaround for getting the pact-protobuf-plugin binary to listen on a different localhost address? I need to be able to run Pact tests inside a container as part of a build pipeline.rholshausen
07/12/2022, 1:08 PMMatt (pactflow.io / pact-js / pact-go)
J
07/13/2022, 8:52 AMdocker run --rm -it ubuntu:latest bash
apt-get update && apt-get install -y wget
wget --quiet <https://github.com/pactflow/pact-protobuf-plugin/releases/download/v-0.1.7/install-plugin.sh>
bash install-plugin.sh
~/.pact/plugins/protobuf-0.1.7/pact-protobuf-plugin
rholshausen
07/13/2022, 3:22 PMrholshausen
07/13/2022, 3:43 PMrholshausen
07/15/2022, 2:35 PM