Example of how to install the pact broker without docker/aws/terraform

878 views
Skip to first unread message

Joel Andersson

unread,
May 11, 2016, 7:16:41 AM5/11/16
to Pact
I want to install the pact broker on a server so that it can be reached by me development team. We´re a Java team and the Ruby know-how is limited. I read the instructions in the Pact Broker README on github but there are too many unknowns for me to proceed. The planned target environment is a Solaris 11 server but I'm currently just trying to get it to work on my Mac while waiting for the actual server.

I cannot use any of the docker/aws/terraform variants. I plan to use Nginx and I've installed a PostgreSQL DB. Being a Ruby newbie I have no idea how to make the pact broker app to run so that it is served by Nginx. I've googled a bit and found seemingly relevant hits talking about passenger/unicorn/sinatra etc. 

What is the simplest way of getting this up and running?

Thanks
/Joel

Joel Andersson

unread,
May 11, 2016, 4:42:15 PM5/11/16
to Pact
I tried following the instructions posted by phusion passenger to run the pact broker in the passenger application server and to serve it through an nginx web server. This worked nicely for me and was easy to setup.


Still interested in input if anyone else has other ideas or best practices.

/Joel

Ronald Holshausen

unread,
May 11, 2016, 6:57:25 PM5/11/16
to Joel Andersson, Pact
Hi Joel,

I'm not sure there is a "best practice" per say, but you can also use the phusion passenger module for nginx instead of a reverse proxy. But if it is working for you, leave it as is. I've used nginx as a reverse proxy in lots of places without any issues.

You could also just run the broker by itself (not use phusion passenger), as it is a Ruby Rack app and can run by itself. Or setup the proxy to that if required. But it may require a little more setup.

Ron


--
You received this message because you are subscribed to the Google Groups "Pact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pact-support...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Ronald Holshausen

DiUS Computing Pty Ltd

Level 10, 99 Queens Street
Melbourne, VIC 3000

Phone: +61 3 9008 5400
Mobile: +61 413 162 439

http://www.diuscomputing.com.au

Joel Andersson

unread,
May 13, 2016, 6:58:42 AM5/13/16
to Pact, joela...@gmail.com
Hi Ron,

Thanks, I'm going to use the stand-alone passenger since I'm going to run this on a Solaris server and I don't want to have to recompile nginx to get passenger in. I did try that approach on my mac though and it also worked nicely.

/Joel
Reply all
Reply to author
Forward
0 new messages