Launch the local Apache + Tomcat web server as part of Gradle Build

In our current environment, there are Tomcat containers located behind the Apache web server. Basically, the web server has ProxyPass rules, which we use to determine the Tomcat instance for routing based on the context root.

As part of our local gradle build, we use the Cargo plugin to deploy the local tomcat container and deploy ours to war. I did not find anything that would allow us to deploy Apache WebServer to test our apache configuration.

Our goal is to have two Tomcat containers, A and B and one Apache WebServer C, so that C will route localhost / appA to tomcat A and localhost / appB to tomcat B.

All this is done to run automatic acceptance tests, but I did not find a gradle plugin that will do this.

Thanks!

+8
tomcat apache webserver gradle
source share
1 answer

You can use Gradle to deploy either Apache http or haproxy docker http://gitlove.us/p/million12/docker-haproxy to load balance your two appA and appB tomcat. You can also use docker for tomcat containers. You can also use Amazon AWS for two Tomcat Amazon Linux servers and both an elastic load balancer and a separate haproxy server for load balancing.

0
source share

All Articles