karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: [DISCUSS] Spring boot integration for decanter and docker images
Date Wed, 25 May 2016 14:19:00 GMT
By module, I meant at least a sample (as we show how to embed Karaf in a 


On 05/25/2016 03:20 PM, Christian Schneider wrote:
> Yes .. sure we should also create a karaf boot starter for decanter in
> the same way... only that it should be easier as it
> does not need to mock an OSGi framework :-)
> Actually I am not even sure if we need a special module as decanter
> support in karaf boot just means installing the decanter features and some
> configs. As features and configs are necessary for all karaf boot
> deployments we might be able to simply use the generic deployment
> features of karaf boot.
> Christian
> On 25.05.2016 15:13, Jean-Baptiste Onofré wrote:
>> Hi,
>> thanks for sharing and this work.
>> I agree to add a module in decanter to support spring-boot, also agree
>> to provide official docker image.
>> HOWEVER (;)), I agree with that if we provide a module karaf-boot in
>> decanter.
>> Regards
>> JB
>> On 05/25/2016 02:38 PM, Christian Schneider wrote:
>>> I just did a POC to use decanter as a distributed logging system for
>>> spring boot applications.
>>> My first approach was to use the log4j socket appender to log into a
>>> local (but separate process) decanter-agent that then forwards to kafka.
>>> A central decanter server would then pick up the logs and store them
>>> into ES. The disadvantage was that each node needs a local
>>> decanter-agent which makes the packaging for the cloud more difficult.
>>> So I looked into a way to embed decanter into spring boot and found
>>> felix connect. It allows to pick some bundles from the normal classpath
>>> and start them in a partial OSGi container.
>>> It seems to be good enough to nicely host decanter and the kafka
>>> appender. I created a custom logback appender class for spring boot that
>>> forwards all logs into the embedded decanter instance.
>>> To make it easy to use I packaged this as a spring boot starter. So
>>> people only have to add the dependency and configure their logging to
>>> use the new decanter appender.
>>> As this might be of general interest I wanted to discuss if we want to
>>> add an official spring boot integration for decanter. It could
>>> significantly widen then audience for decanter.
>>> Another thing to discuss is if we want to provide docker examples and
>>> maybe even official docker images for decanter.
>>> Christian

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message