Hi guys,

Having taken Matt's advice I've blatantly ripped off OpenMRS's cham to get
Saiku into a generic tomcat.

https://github.com/OSBI/saiku/tree/development/charm/trusty/saikuanalytics

The files are still uploading to dropbox so don't try and run it for the
next couple of hours(my ADSL sucks). But if anyone wants to pass comment on
the hooks, etc please do.

I want to extend it further in the coming weeks, so that when people attach
a MySQL/Postgres DB to it you can insert the maintenance DB's into them,
but I need to do some work on ourside first to make that happen. And like
we discussed on the call the other week, when people connect a data source,
make sure the correct JDBC drivers are installed in the platform, but lets
get the basics done first!

Tom

On 19 August 2015 at 21:30, Tom Barber <[email protected]> wrote:

> Hi Matt
>
> Thats exactly what I'm looking for, thanks!
>
> Regards,
>
> Tom
>
> On 19 August 2015 at 16:07, Matt Bruzek <[email protected]>
> 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 <[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

Reply via email to