Docker compose in Juju
Gayan Gunarathne
csegayan at gmail.com
Mon Jun 6 12:36:11 UTC 2016
Hi Charles/Samuel,
Thanks for the information.
What I am try to do is to run a docker compose to start docker containers
in a single machine. Still I am not clear how we can use the docker with
Juju.I am following this[1]
Simple I need to use the Juju UI[2] and create my deployment there.Then can
I do the deployment with the docker.How can I select the docker as a IaaS.
I couldn't find the docker configuration section in environment.yaml.I am
not clear how can I provide the docker as a cloud provider.
[1]https://jujucharms.com/docs/stable/getting-started
[2]https://demo.jujucharms.com/
Thanks,
Gayan
On Wed, Jun 1, 2016 at 3:08 AM, Samuel Cozannet <
samuel.cozannet at canonical.com> wrote:
> And finally to add to this, there is a community effort around Mesos and
> DCOS to provide the same idea as the k8s stuff.
>
> I am also interested in your use case and feedback :)
>
> Best,
> Sam
> On May 31, 2016 7:17 PM, "Charles Butler" <charles.butler at canonical.com>
> wrote:
>
>> 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 <csegayan at gmail.com>
>> 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 <marco.ceppi at canonical.com>
>>> 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 <csegayan at gmail.com>
>>>> 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
>>>>> Juju-dev at lists.ubuntu.com
>>>>> Modify settings or unsubscribe at:
>>>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Gayan
>>> --
>>> Juju-dev mailing list
>>> Juju-dev at lists.ubuntu.com
>>> 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
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
--
Best Regards,
Gayan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160606/f6cfa59b/attachment.html>
More information about the Juju-dev
mailing list