Tomcat Deployment App
On of my clients has asked me to setup a deployment app. Basically, we have seven instances of tomcat setup through one Apache webserver. Apache proxies to each instance based on different domain name. They want the ability to upgrade each instance with the click of a button. Here's my idea:
- Create a Struts-based app that allows file upload, where they can upload a war file.
- Part of the file-upload process is selecting which servers they'd like to upgrade.
- Based on the server names, the war file is copied and expanded in the tomcat/webapps/appname directory for each server.
Will this work, and can I do this through a webapp? It'd be cool to do steps 1 and 2 with a webapp and have step 3 run by Ant. Is it possible for a webapp to call Ant? The second piece that they're probably going to want is the ability to setup these virtual slices on the fly, from a web page as well. That might be a little tougher, as it would involve: editing http.conf/workers.properties, creating a new user for the slice, copying/expanding a base Tomcat install, editing the server.xml for new ports, creating a new MySQL instance for the slice, and finally, creating startup scripts. Yeah, I might have to pass on creating that app - probably not logical to do it from a webapp. Especially when it only takes about 10 minutes to setup right now.
Posted by dsuspense on December 15, 2002 at 04:22 PM MST #
Posted by Ugo Cei on December 15, 2002 at 04:36 PM MST #
Posted by Matt Raible on December 15, 2002 at 08:18 PM MST #
Posted by Hans Gerwitz on December 17, 2002 at 09:53 PM MST #