Hi Tom, Take a look at the openmrs charm for an example of a war file deploying to a tomcat charm.
https://jujucharms.com/openmrs/precise Subordinate charms like openmrs it will not run the install hook until it is related to a container charm, so normal charm hooks (install, config-changed, start) would be what you can use. The openmrs charm has not been ported/tested with trusty so that is the reason there is no trusty version yet. In the mean time you can put openmrs in a trusty directory and deploy a local copy that way. The openmrs charm uses a juju-info relation that can relate to any charm including the trusty version of tomcat. It was pointed out that creating a javawebapp relation was a better way to relate webapps and that change was made in precise but not tested/moved forward to trusty at this time. Please contact me if you have any other questions, I would be happy to help you develop your charm. Thanks, - Matt Bruzek <[email protected]> On Wed, Aug 19, 2015 at 8:34 AM, Tom Barber <[email protected]> wrote: > Hi chaps > > After a chat with Corey et al a few weeks ago it was suggested I deploy > our product using the Tomcat charm as a container, which I thought was a > pretty good suggestion. > > So, I look at the precise charm and it says: > > For another charm to provide a webapp, it must be a subordinate charm that > supports the java-webapp relation. > > Can someone show me an example or just elaborate on that a bit more, how > does it know which file to deploy, does it require a trigger or similar? > > Also that stuff is missing in the Trusty Tomcat charm from what I can see. > Why is there a disparity in versions and if so, whats the best way to > deploy a war? > > Tom > > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
