json
05/06/2022, 9:14 PMdocker run -it --entrypoint bash pactfoundation/pact-cli
to browse around inside the docker container and locate the script, I get an error that says it does not have bash installed, 🤷♂️Matt (pactflow.io / pact-js / pact-go)
--help
argumentMatt (pactflow.io / pact-js / pact-go)
pact-broker help publish
Matt (pactflow.io / pact-js / pact-go)
I get an error that says it does not have bash installed, 🤷♂️
That's because bash isn't installed. Just use
sh
Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
FROM
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
I see that there is a pact-cli docker image as well, but I'm not sure exactly how to incorporate that into my own dockerfile.ideally you would just use it as is, as a CLI tool, rather than incorporating into your Dockerfile, but as said you can use Dockerfiles extend syntax to build from an existing image.
Yousaf Nabi (pactflow.io)
debian:stretch
https://github.com/YOU54F/pact-standalone-docker-slim/blob/master/debian_base/Dockerfile where I load the ruby cli into an image, might be useful.
Let us know how you get on buddy