I think it makes sense to leverage profiles in the docker feature that I started and proposed: for me it's a great addition of the Karaf instances.

The Karaf Docker feature can bootstrap an image including a Karaf profile.

My $0.02

Regards
JB

On 04/08/2015 04:24 PM, Guillaume Nodet wrote:
All the tooling to build karaf distributions is now available in master,
including the use of profiles, kars, features.
This code has been extracted from the maven plugin so that it does not
depend on maven at all : all downloads are performed as done from inside
karaf with the features service.

This tooling can create dynamic or completely static distributions (with
all bundles being referenced and no need for the features service
provisioning, a read-only config admin, no file install, etc...).

I haven't brought back the pure docker side yet, i.e. build the docker
image by extracting the distribution on top of a java based docker
image, but I still have the original code, so it's just a matter of
getting back to working on it.


2015-04-08 16:12 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net
<mailto:j...@nanthrax.net>>:

    Hi Ryan,

    I invite you to read my blog about Karaf and Docker:

    
http://blog.nanthrax.net/2014/__12/apache-karaf-christmas-__gifts-docker-io-profiles-and-__decanter/
    
<http://blog.nanthrax.net/2014/12/apache-karaf-christmas-gifts-docker-io-profiles-and-decanter/>

    and the Karaf Docker proposal:

    
http://karaf.922171.n3.nabble.__com/DISCUSSION-Karaf-docker-__io-td4038470.html
    
<http://karaf.922171.n3.nabble.com/DISCUSSION-Karaf-docker-io-td4038470.html>

    Regards
    JB


    On 04/08/2015 02:31 PM, Ryan Moquin wrote:

        Hi,

        I've been reading up on Docker and trying to understand what all the
        fuss is about  (I'm still not sure for several reasons, but I
        digress).
        I was wondering how Docker might influence Karaf in the future
        as well
        as how Docker fits in with OSGi and Karaf in general.

        Specifically my questions are:

        1.  It seems like the hype of Docker is causing people to shy
        away from
        the dynamic nature of OSGi, such as being able to update bundles
        in a
        running Karaf container.  Is the use of Docker and Karaf boiling
        down to
        creating a static Karaf image and anytime you want to upgrade
        anything,
        you throw away the instance and replace it with a newly built
        instance?
        It feels inefficient.  It also feels like it really complicates
        everything.  Unless you are developing on Linux, development using
        Docker containers is really slow.  Dealing with setting up docker
        containers to test things out locally also seems like a lot of
        overhead.  If you don't test locally with Docker, then can you
        be sure
        that deploying in a Docker container will work properly?

        2.  In regards to the first question, and the fact that people
        indicate
        they think Docker will become the standard, will Karaf be dumbed
        down in
        the future due to the static nature of Docker?  Meaning, if Docker
        *does* becomes the de factor standard for deploying everything,
        it feels
        like developers would be discouraged from using a lot of the
        run-time
        benefits OSGi offers.

        I kind of feel like the big push of Docker in the development
        community
        in general (as a whole, not talking about the Karaf developer
        community), will potentially cause a lack of innovation and
        improvements
        in the deploying of applications.  Docker could become a
        crutch.  If an
        application is slowly leaking memory over a 24 hour period, why
        fix it?
        When it crashes, just replace it with a new instance.

        Am I wrong?  This is just my initial thoughts and questions.  I
        wanted
        to see what other people thought and how other people view
        Docker and
        Karaf being used or how it is being used.

        Ryan


    --
    Jean-Baptiste Onofré
    jbono...@apache.org <mailto:jbono...@apache.org>
    http://blog.nanthrax.net
    Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to