This repository has been archived by the owner on Mar 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from alphagov/add_flower
Adds flower (monitor) to backdrop.
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ueo pipefail | ||
|
||
: "${VCAP_SERVICES:?Expecting VCAP_SERVICES to be set!}" | ||
: "${REDIS_DATABASE_NUMBER:?Expecting REDIS_DATABASE_NUMBER to be set!}" | ||
: "${PORT:?Expecting PORT to be set!}" | ||
: "${FLOWER_BASIC_AUTH:?Expecting FLOWER_BASIC_AUTH to be set!}" | ||
|
||
export FLOWER_BROKER_API="$(echo ${VCAP_SERVICES} | jq -r '.["redis"][] | select(.name == "redis") | .credentials.uri')/${REDIS_DATABASE_NUMBER}" | ||
export FLOWER_PORT=${PORT} | ||
|
||
flower --broker="${FLOWER_BROKER_API}" -A backdrop.transformers.worker |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ xlrd==0.9.3 | |
logstash_formatter==0.5.7 | ||
Werkzeug==0.12.2 | ||
redis==2.10.6 | ||
flower==0.9.2 |