Deploying webapp to Tomcat Charm

Tom Barber tom at analytical-labs.com
Wed Aug 19 20:30:55 UTC 2015


Hi Matt

Thats exactly what I'm looking for, thanks!

Regards,

Tom

On 19 August 2015 at 16:07, Matt Bruzek <matthew.bruzek at canonical.com>
wrote:

> 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 <matthew.bruzek at canonical.com>
>
> On Wed, Aug 19, 2015 at 8:34 AM, Tom Barber <tom at analytical-labs.com>
> 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
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150819/87b9c814/attachment.html>


More information about the Juju mailing list