Skip to content

Instantly share code, notes, and snippets.

@shreddedbacon
Last active December 12, 2023 05:44
Show Gist options
  • Select an option

  • Save shreddedbacon/6835d174a1aacfefc6a3b336a1aa1bbc to your computer and use it in GitHub Desktop.

Select an option

Save shreddedbacon/6835d174a1aacfefc6a3b336a1aa1bbc to your computer and use it in GitHub Desktop.
set up queues

docker-compose -p lagoon exec broker sh

for queue in "ui-kubernetes" "ui-kubernetes-2" "ci-local-control-k8s"; do
rabbitmqadmin declare queue --vhost=/ name=lagoon-tasks:${queue}:builddeploy durable=true
rabbitmqadmin --vhost=/ declare binding source="lagoon-tasks" destination_type="queue" destination="lagoon-tasks:${queue}:builddeploy" routing_key="${queue}:builddeploy"
rabbitmqadmin declare queue --vhost=/ name=lagoon-tasks:${queue}:jobs durable=true
rabbitmqadmin --vhost=/ declare binding source="lagoon-tasks" destination_type="queue" destination="lagoon-tasks:${queue}:jobs" routing_key="${queue}:jobs"
rabbitmqadmin declare queue --vhost=/ name=lagoon-tasks:${queue}:misc durable=true
rabbitmqadmin --vhost=/ declare binding source="lagoon-tasks" destination_type="queue" destination="lagoon-tasks:${queue}:misc" routing_key="${queue}:misc"
rabbitmqadmin declare queue --vhost=/ name=lagoon-tasks:${queue}:remove durable=true
rabbitmqadmin --vhost=/ declare binding source="lagoon-tasks" destination_type="queue" destination="lagoon-tasks:${queue}:remove" routing_key="${queue}:remove"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment