<#56 Running the standalone package inside of a ru...
# pact-ruby-standalone
g
#56 Running the standalone package inside of a ruby container fails Issue created by johnduhart I've encountered something similar to #17, where running the standalone package inside of a container is failing. After spending a few hours troubleshooting I've managed to narrow down the problem. Example dockerfile to reproduce:
Copy code
FROM 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:
Copy code
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:
Copy code
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-standalone