Hello, I had a question. Pact standalone can run o...
# general
p
Hello, I had a question. Pact standalone can run on alpine or not? I try to run it from pact-php server not start properly. when I try to run manually I got this error
Copy code
/var/www/vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby: line 6: /var/www/vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: No such file or directory
y
HI @Phongthorn, Check out our official docs on the subject https://docs.pact.io/docker#alpine-linux and let us know how you get on. These examples below are a bit older but images I have previously built and used Here is an older one I did for node (https://github.com/YOU54F/pact-standalone-docker-slim/issues/11) and one I did for ruby alpine (https://github.com/YOU54F/pact-standalone-docker-slim/blob/master/ruby_base/Dockerfile)
p
Thanks @Yousaf Nabi (pactflow.io) Let me try and let you know 🙂
It works. Thank you so much @Yousaf Nabi (pactflow.io)
🙌 1
y
no problem @Phongthorn, could you confirm the official docs image worked for you?
p
@Yousaf Nabi (pactflow.io) I do not use the image. I just add the 3 line from your link https://docs.pact.io/docker#alpine-linux
Copy code
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub <https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub> \
  && wget <https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk> \
  && apk add glibc-2.29-r0.apk
It works with this way
👌 1