|
1 | | -Cloudsoft Container Service |
2 | | -======= |
| 1 | +# Cloudsoft Container Service |
3 | 2 |
|
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. |
5 | 5 |
|
6 | | -So far this includes: |
| 6 | +## Docker Engine |
7 | 7 |
|
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 |
12 | 15 |
|
13 | 16 | Here's an example: |
14 | 17 |
|
15 | | -``` |
| 18 | +```YAML |
16 | 19 | services: |
17 | 20 | - type: docker-engine |
18 | 21 | brooklyn.children: |
19 | 22 | - type: docker-engine-container |
20 | 23 | container: hello-world |
21 | 24 | ``` |
22 | 25 |
|
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