Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahgittin/8e9c5b4f638fdbcca585 to your computer and use it in GitHub Desktop.
Save ahgittin/8e9c5b4f638fdbcca585 to your computer and use it in GitHub Desktop.
brooklyn.catalog:
version: 0.1
description: Sample VM with a demo script
name: Alex-AWS-VM-1
location:
jclouds:aws-ec2:
region: eu-west-1
osFamily: ubuntu
minRam: 8gb
services:
- type: brooklyn.entity.basic.VanillaSoftwareProcess
name: my-simple-vm
launch.command: |
wget https://gist.githubusercontent.com/ahgittin/8e9c5b4f638fdbcca585/raw/0d79a02cf90b7f55414088b521258dcb5af5865a/netcat-loop.sh
chmod +x netcat-loop.sh
nohup ./netcat-loop.sh &
sleep 5
while ( true ) ; do
echo hello | nc -l 4321 &
echo $! > ${PID_FILE:-netcat.pid}
done
cf update-service-broker brooklyn user `cat /tmp/passwd` http://brooklyn-service-broker.apps.tai-dev3.cfdev.canopy-cloud.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment