- We used
curl
to download a Docker Compose template for RabbitMQ 3.6 from the image repo - We started a new Docker Compose "project" named blazing-fast-rabbit using the template
- The Docker image has an automated procedure in the entry script to automatically join a RabbiMQ cluster
- The management UI ports are exposed and forwarded to localhost ports 15672, 15673 and 15674
- We can get an interactive Bash terminal to the container
- We can execute any command in the container without an interactive terminal!
- We left everything as we found it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//+go:build integration | |
package amqp091_test | |
import ( | |
"context" | |
"fmt" | |
amqp "github.com/rabbitmq/amqp091-go" | |
"os" | |
"strconv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oneGB = 1 * 1000 * 1000 # in KB | |
$testbed = Proc.new do | |
{ | |
"name" => "testbed", | |
"version" => 3, | |
"esx" => (0..0).map do | idx | | |
{ | |
"name" => "esx.#{idx}", | |
"vc" => "vc.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rabbitmq.com/v1beta1 | |
kind: RabbitmqCluster | |
metadata: | |
annotations: | |
prometheus.io/port: "15692" | |
prometheus.io/scrape: "true" | |
name: bunny | |
spec: | |
image: rabbitmq:3.8 | |
replicas: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: perf-test-deployment | |
labels: | |
app: perf-test | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bindings": [ | |
{ | |
"arguments": {}, | |
"destination": "dead", | |
"destination_type": "queue", | |
"routing_key": "", | |
"source": "dlx", | |
"vhost": "/" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -pv testca | |
cd testca | |
mkdir -pv certs private | |
chmod 700 private | |
echo 01 > serial | |
touch index.txt | |
openssl req -x509 -config ../openssl.cnf -newkey rsa:2048 -days 365 -out cacert.pem -outform PEM -subj /CN=MyTestCA/ -nodes |
I hereby claim:
- I am Zerpet on github.
- I am zerpet (https://keybase.io/zerpet) on keybase.
- I have a public key whose fingerprint is 2C8F CD9C A8D5 1A8F 89DE D4E7 0E97 3277 AB13 2628
To claim this, I am signing this object: