Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: add support for pulse.test (bug1940611) #66

Open
wants to merge 2 commits into
base: zeid/bug-1885346-new-lando
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,13 @@ in with
A local Git server is also available at http://git.test. The `conduit` user can
log in with the credentials above. For administrative tasks, the account details are as follows:

`user: git-admin`, `password:password123456789!`
`user:git-admin`, `password:password123456789!`

A local RabbitMQ server is running at pulse.test:5672. The administrative
interface can be found at http://pulse.test:15672. The credentials are
this service are

`user:guest`, `password:guest`

## Updating the preloaded Phabricator database

Expand Down
8 changes: 8 additions & 0 deletions docker-compose.git_hg_sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
git_hg_sync:
build:
context: ../git-hg-sync
image: git_hg_sync
depends_on:
pulse.test:
condition: service_healthy
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,21 @@ services:
- bmo.pushd
- autoland.hg.test

###########################
# Pulse
###########################

pulse.test:
image: rabbitmq:3-management-alpine
volumes:
- ./docker/rabbitmq/90-definitions-import.conf:/etc/rabbitmq/conf.d/90-definitions-import.conf
- ./docker/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 2s
retries: 1

###########################
# Proxy containers
###########################
Expand Down
3 changes: 3 additions & 0 deletions docker/rabbitmq/90-definitions-import.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Does not require management plugin to be enabled.
definitions.import_backend = local_filesystem
definitions.local.path = /etc/rabbitmq/definitions.json
49 changes: 49 additions & 0 deletions docker/rabbitmq/definitions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"bindings": [
{
"arguments": {},
"destination": "queue/git-hg-sync/sync",
"destination_type": "queue",
"routing_key": "git-hg-sync",
"source": "exchange/git-hg-sync/test",
"vhost": "/"
}
],
"exchanges": [
{
"arguments": {},
"auto_delete": false,
"durable": true,
"internal": false,
"name": "exchange/git-hg-sync/test",
"type": "direct",
"vhost": "/"
}
],
"queues": [
{
"arguments": {},
"auto_delete": false,
"durable": true,
"name": "queue/git-hg-sync/sync",
"vhost": "/"
}
],
"users": [
{
"hashing_algorithm": "rabbit_password_hashing_sha256",
"limits": {},
"name": "guest",
"password_hash": "ywxQjVk0n/qwUfbLIf7L2tJIXrNLfM1bd1GoMeJSzZiRMWSd",
"tags": ["administrator"]
}
],
"vhosts": [
{
"description": "Default virtual host",
"metadata": { "description": "Default virtual host", "tags": [] },
"name": "/",
"tags": []
}
]
}