Skip to content

Commit

Permalink
feat: allow Pact Broker application port to be configured via an envi…
Browse files Browse the repository at this point in the history
…ronment variable

Closes: #1
  • Loading branch information
bethesque committed May 30, 2019
1 parent 6c47f8c commit 11e4ced
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ COPY pact_broker $HOME/

# Start Puma
ENV RACK_ENV=production
ENV PACT_BROKER_PORT=9292
USER ruby
EXPOSE 9292
ENTRYPOINT ["bundle", "exec", "puma"]
EXPOSE $PACT_BROKER_PORT
ENTRYPOINT ["./entrypoint.sh"]
CMD ["config.ru"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ Set the environment variable `PACT_BROKER_LOG_LEVEL` to one of `DEBUG`, `INFO`,

## Other environment variables

* PACT_BROKER_PORT - the port that the Pact Broker application runs on. Defaults to 9292.
* PACT_BROKER_DISABLE_SSL_VERIFICATION - `false` by default, may be set to `true`.
* PACT_BROKER_BASE_EQUALITY_ONLY_ON_CONTENT_THAT_AFFECTS_VERIFICATION_RESULTS - `true` by default, may be set to `false`.
* PACT_BROKER_ORDER_VERSIONS_BY_DATE - `true` by default, may be set to `false`.
* PACT_BROKER_DISABLE_SSL_VERIFICATION - `false` by default, may be set to `true`.

## General Pact Broker configuration and usage

Expand Down
3 changes: 3 additions & 0 deletions pact_broker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

bundle exec puma --port $PACT_BROKER_PORT

0 comments on commit 11e4ced

Please sign in to comment.