Skip to content

Adding Clocker to a Brooklyn catalog

Sam Corbett edited this page Feb 5, 2015 · 1 revision

Adding Clocker to a Brooklyn catalog

Clocker can be added to the catalog of existing Brooklyn servers.

The catalog entry requires the following bundles be included:

  • brooklyn-clocker-docker
  • brooklyn-clocker-examples
  • brooklyn-networking-common
  • brooklyn-networking-portforwarding
  • guava

Add a blueprint along these lines to your catalog. You may need to change the library URLs if you do not have the artifacts installed to your local Maven repository. See Brooklyn's documentation for instructions on adding catalog entries.

services:
- type: brooklyn.entity.basic.BasicApplication
  brooklyn.children:
  - type: brooklyn.clocker.DockerCloud

brooklyn.catalog:
  id: docker-cloud
  version: 1.0
  displayName: Clocker
  libraries:
  - name: io.brooklyn.clocker.brooklyn-clocker-docker
    version: 0.8.0.SNAPSHOT
    url: file://~/.m2/repository/io/brooklyn/clocker/brooklyn-clocker-docker/0.8.0-SNAPSHOT/brooklyn-clocker-docker-0.8.0-SNAPSHOT.jar

  - name: io.brooklyn.clocker.brooklyn-clocker-examples
    version: 0.8.0.SNAPSHOT
    url: file://~/.m2/repository/io/brooklyn/clocker/brooklyn-clocker-examples/0.8.0-SNAPSHOT/brooklyn-clocker-examples-0.8.0-SNAPSHOT.jar

  - name: io.brooklyn.networking.brooklyn-networking-common
    version: 0.7.0.SNAPSHOT
    url: file://~/.m2/repository/io/brooklyn/networking/brooklyn-networking-common/0.7.0-SNAPSHOT/brooklyn-networking-common-0.7.0-SNAPSHOT.jar

  - name: io.brooklyn.networking.brooklyn-networking-portforwarding
    version: 0.7.0.SNAPSHOT
    url: file://~/.m2/repository/io/brooklyn/networking/brooklyn-networking-portforwarding/0.7.0-SNAPSHOT/brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar

  - name: com.google.guava
    version: 17.0.0
    url: file://~/.m2/repository/com/google/guava/guava/17.0/guava-17.0.jar

Once such a blueprint has been registered you can deploy Clocker clouds via Brooklyn's add-application wizard or by submitting YAML like:

name: Clocker
location: jclouds:softlayer:ams01
services:
- type: docker-cloud
  brooklyn.config:
    docker.container.cluster.minSize: 3

Clone this wiki locally