Skip to content

Commit c302b61

Browse files
committed
Merge pull request apache#23 from cloudsoft/readme-swarm
Updated README with Swarm example
2 parents 671ce22 + 957f75c commit c302b61

1 file changed

Lines changed: 37 additions & 10 deletions

File tree

README.md

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,50 @@
1-
Cloudsoft Container Service
2-
=======
1+
# Cloudsoft Container Service
32

4-
This project contains entities and other items for using Apache Brooklyn in a container ecosystem.
3+
This project contains entities and other items for using Apache Brooklyn in a
4+
container ecosystem.
55

6-
So far this includes:
6+
## Docker Engine
77

8-
* `docker-engine` for provisioning a VM with Docker hosts; normal `SoftwareProcess` configuration keys apply
9-
* `docker-engine-container` for provisioning a container on a `docker-engine`, as a child of that node,
10-
using the key `container` for the image name at Docker Hub
11-
and optionally using `postLaunchCommand` (from `SoftwareProcess`) for any additional commands e.g. port-forwards
8+
* `docker-engine` for provisioning a VM with Docker Engine; normal
9+
`SoftwareProcess` configuration keys apply
10+
11+
* `docker-engine-container` for provisioning a container on a `docker-engine`
12+
as a child of that node, using the key `container` for the image name at
13+
Docker Hub and optionally using `postLaunchCommand` key for any additional
14+
commands e.g. port-forwards
1215

1316
Here's an example:
1417

15-
```
18+
```YAML
1619
services:
1720
- type: docker-engine
1821
brooklyn.children:
1922
- type: docker-engine-container
2023
container: hello-world
2124
```
2225
23-
The implementation is as simple as possible, as you can see in the `catalog.bom` definition.
26+
The implementation is as simple as possible, as you can see in the
27+
[catalog.bom](catalog.bom) definition.
28+
29+
## Docker Swarm
30+
31+
* `docker-swarm` for provisioning a cluster of VMs with Docker Swarm managed
32+
Docker Engines.
33+
34+
* `ca-server` provides a simple certificate authority to generate the
35+
required TLS keys.
36+
37+
Here's an example:
38+
39+
```YAML
40+
services:
41+
- type: docker-swarm
42+
id: swarm
43+
name: "swarm"
44+
brooklyn.config:
45+
swarm.initial.size: 3
46+
etcd.initial.size: 1
47+
```
48+
49+
This requires the [ca.bom](ca.bom) and [swarm.bom](swarm.bom) definitions to
50+
be loaded in addition to Docker Engine.

0 commit comments

Comments
 (0)