Greetings Gayan! You most certainly can compose and use a full docker-provided stack, mix and match with charms - thats the power of wrapping your compose-based service with layer-docker.
https://github.com/juju-solutions/layer-docker Which is a great starting place for charming up your dockerized app using charms.docker to lend a hand with the ops knowledge to get it running :) https://github.com/juju-solutions/charms.docker http://pythonhosted.org/charms.docker/modules.html There are several examples in the charm store from myself (lazypower) and Matt Bruzek (mbruzek) that are docker based. I believe the most straight forward example that I can illustrate today is the swarm layer, which builds the swarm charm. https://github.com/juju-solutions/layer-swarm https://jujucharms.com/u/containers/swarm-core This is a multi-series charm that delivers swarm via containers, backended by consul or etcd as the discovery mechanism. This has a good mix of relationships, base layers, top-layers (what you would be writing), and uses the docker-native tooling to bring everything up with some help from juju. There are even more complex examples, such as Kubernetes - all being brought up and controlled in a similar manner https://github.com/kubernetes/kubernetes/tree/master/cluster/juju https://jujucharms.com/u/containers/kubernetes-core If you need any help charming with Docker you can get in touch with myself on the mailing list here, or join us on irc in #juju on irc.freenode.net I'd love to hear any feedback/questions/comments about the developer tooling we have here, as its really ramped up our capacity to churn out high quality charms quickly that are docker based, and if there's any rough edges we can sand out for other developers would be great starting points. All the best, Charles On Tue, May 31, 2016 at 9:41 AM Gayan Gunarathne <[email protected]> wrote: > Hi Marco, > > Thanks for the details. > > Actually I just want to do something like this. Lets say I have tomcat and > mysql composite application. So I need to deploy these two application in > docker with depends on(I am really glad if I can use demo UI[1]). How can I > do that? > > Do you already have charms that run in docker with the same? Can you point > me to some sample? > > [1]https://demo.jujucharms.com/ > > Thanks, > Gayan > > On Tue, May 31, 2016 at 6:52 PM, Marco Ceppi <[email protected]> > wrote: > >> Hi Gayan, >> >> I've added the general Juju list which covers more of these general >> topics. >> >> So, because of the nature of LXC machines and Docker style application >> containers it's hard to model that style application container in Juju in >> the same way LXC machines work. However, it's quite easy to wrap something >> like a Docker container, which works really well as a payload/software >> delivery tool, but then you can use Juju to wrap that immutable object and >> make it mutable inside of a Juju deployment. >> >> I know there are quite a few people on the juju mailing list doing this >> today, so I'll let them weigh in. In short, yes you can use Docker and >> docker style application containers with Juju, but not in the same direct >> way you would a LXC machine just because of the differences in function and >> form. >> >> Marco >> >> On Tue, May 31, 2016 at 7:09 AM Gayan Gunarathne <[email protected]> >> wrote: >> >>> Hello, >>> >>> Can we run docker directly with Juju? I saw Juju is supporting the LXC >>> containers. I need to know whether we can spawn docker containers as the >>> same. >>> >>> If we support this can you point me to any document? >>> >>> Thanks, >>> Gayan >>> -- >>> Juju-dev mailing list >>> [email protected] >>> Modify settings or unsubscribe at: >>> https://lists.ubuntu.com/mailman/listinfo/juju-dev >>> >> > > > -- > Best Regards, > Gayan > -- > Juju-dev mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju-dev > -- Juju Charmer Canonical Group Ltd. Ubuntu - Linux for human beings | www.ubuntu.com Juju - The fastest way to model your service | www.jujucharms.com
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
