Skip to content

Instantly share code, notes, and snippets.

View grkvlt's full-sized avatar
💭
🐧

Andrew Donald KENNEDY grkvlt

💭
🐧
View GitHub Profile
@grkvlt
grkvlt / clocker-blog-docker-applications-one.md
Last active November 23, 2015 13:00
Blog post for Abstract Visitor pattern on Adrian's Clocker demo application and image to VM replacement.

Running Docker Applications with Clocker (Part One)

November-December 2015, Abstract Visitor Pattern

Andrew Kennedy, Cloudsoft Corporation Limited <[email protected]>
Graeme Miller, Cloudsoft Corporation Limited <[email protected]>
Adrian Mouat, Container Solutions <[email protected]>

This post will explain how to use Clocker to build blueprints for, and deploy, applications consisting of linked Docker containers.

@grkvlt
grkvlt / clocker-demo-containers-vm-url.yaml
Last active February 15, 2016 20:36
Clocker Demo Application
# Copyright 2014-2015 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#o
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@grkvlt
grkvlt / adrian.yaml
Last active September 4, 2015 16:27
id: using-docker-example
name: "Using Docker Example Application"
location: my-docker-cloud
services:
- type: org.apache.brooklyn.entity.nosql.redis.RedisStore
id: redis
name: "Redis Node"
version: 3.0.0
- type: docker:amouat/dnmonster:1.0
id: dnmonster
@grkvlt
grkvlt / entities.md
Created August 28, 2015 13:34
New Entities for Brooklyn

New Entities

BlueGreenCluster

An upgradeable (with roll-back) cluster of services.

ServiceProxy

Starts the service if it does not exist, otherwise uses the existing service but presents its sensors as a proxy feed.

@grkvlt
grkvlt / sensor-data.json
Created August 27, 2015 06:25
Sensor data from running entity
{"pattern":"connected to Riak at %s","args":[{"component":{"componentId":"riak-cluster","scopeComponent":null,"scope":"GLOBAL"},"sensorName":"main.uri"}]}
@grkvlt
grkvlt / rabbitmq-blueprints.yaml
Last active August 27, 2015 06:25
RabbitMQ Blueprint Examples
# RabbitMQ Example
brooklyn.catalog:
version: 0.1
items:
- id: rabbitmq-node
item:
type: org.apache.brooklyn.entity.messaging.rabbit.RabbitBroker
name: RabbitMQ
provisioning.properties:
@grkvlt
grkvlt / tomcat-catalog-entries.yaml
Last active August 25, 2015 19:46
Tomcat Catalog Entries
# Copyright 2014-2015 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# Copyright 2014-2015 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@grkvlt
grkvlt / riak.bom
Last active August 29, 2015 14:28
Riak Update
# Copyright 2014-2015 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@grkvlt
grkvlt / docker-redis.yaml
Created August 24, 2015 14:47
Redis from Docker Image Blueprint
name: "Docker Hub Redis Service"
origin: "https://registry.hub.docker.com/_/redis/"
locations:
- my-docker-cloud
services:
- type: docker:redis:2.8.19
openPorts:
- 6379
directPorts: