GitHub
05/18/2023, 6:53 PMFROM ruby:2.6
WORKDIR /opt
RUN curl -LO <https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.87.5/pact-1.87.5-linux-x86_64.tar.gz> \
&& tar xzf pact-1.87.5-linux-x86_64.tar.gz
I'm currently getting the following error:
C:\temp\pact-standalone> docker run --rm -it pact-standalone:latest /opt/pact/bin/pact-mock-service --help
Could not find rake-13.0.1 in any of the sources
Run `bundle install` to install missing gems.
The cause of this appears to be the `BUNDLE_APP_CONFIG` set on the ruby
container. Adding the follow to the Dockerfile fixes the problem:
RUN echo "echo unset BUNDLE_APP_CONFIG" >> /opt/pact/lib/ruby/bin/ruby_environment
I don't know if this is something that needs to be fixed upstream or in this package, but at the very least I wanted to just document this issue for anyone else that may encounter this.
pact-foundation/pact-ruby-standaloneGitHub
05/18/2023, 6:53 PM