I hereby claim:
- I am bthelen on github.
- I am bthelen (https://keybase.io/bthelen) on keybase.
- I have a public key ASApOVaWvQOxLV8-xYneR0TPpOuE2hFYURYlrwzRELtpBwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env bash | |
function waitForServicesToInitialize() { | |
# Wait until services are ready | |
while cf services | grep 'create in progress' | |
do | |
sleep 10 | |
echo "Waiting for services to initialize..." | |
done |
#! /usr/bin/env bash | |
set -e | |
readonly ARGS="$#" | |
readonly SERVICE="$1" | |
readonly SERVICE_PLAN="$2" | |
readonly SERVICE_INSTANCE="$3" | |
readonly SERVICE_CREDENTIALS_JSON="$4" | |
readonly PROGNAME=$(basename $0) |
#! /usr/bin/env bash | |
set -e | |
readonly ARGS="$#" | |
readonly SERVICE_INSTANCE="$1" | |
readonly CREDENTIALS="$2" | |
readonly PROGNAME=$(basename $0) | |
usage() { |
#Run RabbitMQ | |
docker run -d --hostname my-rabbit -p 15672:15672 rabbitmq:3-management | |
#Make a queue called foo | |
curl -s -u guest:guest -H "content-type:application/json" -X PUT http://127.0.0.1:15672/api/queues/%2F/foo | |
#Put some messages | |
curl -u guest:guest -H "content-type:application/json" -X POST http://localhost:15672/api/exchanges/%2f/amq.default/publish -d'{"properties":{"delivery_mode":2},"routing_key":"foo","payload":"aaaaaa","payload_encoding":"string"}' | |
curl -u guest:guest -H "content-type:application/json" -X POST http://localhost:15672/api/exchanges/%2f/amq.default/publish -d'{"properties":{"delivery_mode":2},"routing_key":"foo","payload":"bbbbbb","payload_encoding":"string"}' |