<div dir="ltr">Greetings Gayan!<div><br></div><div>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.</div><div><br></div><div><a href="https://github.com/juju-solutions/layer-docker">https://github.com/juju-solutions/layer-docker</a><br></div><div><br></div><div>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 :)</div><div><br></div><div><a href="https://github.com/juju-solutions/charms.docker">https://github.com/juju-solutions/charms.docker</a><br></div><div><a href="http://pythonhosted.org/charms.docker/modules.html">http://pythonhosted.org/charms.docker/modules.html</a><br></div><div><br></div><div>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.</div><div><br></div><div><a href="https://github.com/juju-solutions/layer-swarm">https://github.com/juju-solutions/layer-swarm</a><br></div><div><a href="https://jujucharms.com/u/containers/swarm-core">https://jujucharms.com/u/containers/swarm-core</a></div><div><br></div><div>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.</div><div><br></div><div>There are even more complex examples, such as Kubernetes - all being brought up and controlled in a similar manner</div><div><br></div><div><a href="https://github.com/kubernetes/kubernetes/tree/master/cluster/juju">https://github.com/kubernetes/kubernetes/tree/master/cluster/juju</a><br></div><div><a href="https://jujucharms.com/u/containers/kubernetes-core">https://jujucharms.com/u/containers/kubernetes-core</a><br></div><div><br></div><div>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 <a href="http://irc.freenode.net">irc.freenode.net</a></div><div><br></div><div>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.</div><div><br></div><div>All the best,</div><div><br></div><div>Charles</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 31, 2016 at 9:41 AM Gayan Gunarathne <<a href="mailto:csegayan@gmail.com">csegayan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Marco,<br><br></div>Thanks for the details.<br><br></div>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?<br><br></div>Do you already have charms that run in docker with the same? Can you point me to some sample?<br><div><div><div><br>[1]<a href="https://demo.jujucharms.com/" target="_blank">https://demo.jujucharms.com/</a><br><br></div><div>Thanks,<br></div><div>Gayan<br></div></div></div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 6:52 PM, Marco Ceppi <span dir="ltr"><<a href="mailto:marco.ceppi@canonical.com" target="_blank">marco.ceppi@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Gayan,<div><br></div><div>I've added the general Juju list which covers more of these general topics.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Marco<br><br><div class="gmail_quote"><div><div><div dir="ltr">On Tue, May 31, 2016 at 7:09 AM Gayan Gunarathne <<a href="mailto:csegayan@gmail.com" target="_blank">csegayan@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Hello,<br><br></div>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.<br><br></div><div>If we support this can you point me to any document?<br><br></div><div>Thanks,<br></div><div>Gayan<br></div></div></div></div><span><font color="#888888">
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</font></span></blockquote></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br></div><div class="gmail_extra"><div data-smartmail="gmail_signature">Best Regards,<br>Gayan</div>
</div>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px">Juju Charmer</span><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px">Canonical Group Ltd.</span><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px">Ubuntu - Linux for human beings | <a href="http://www.ubuntu.com">www.ubuntu.com</a></span><br><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px">Juju - </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px">The fastest way to model your service</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:14.3px;line-height:17.6033px"> | <a href="http://www.jujucharms.com">www.jujucharms.com</a></span></div></div></div>