Skip to content

Commit

Permalink
- Updated deploy script to reqruie db service
Browse files Browse the repository at this point in the history
- updated manifest to hook grafana up to rds
  • Loading branch information
elipe17 committed Oct 9, 2024
1 parent 0b98845 commit a8cb835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tdrs-backend/plg/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ deploy_grafana() {
yq eval -i ".datasources[1].url = \"http://loki.apps.internal:8080\"" $DATASOURCES
yq eval -i ".applications[0].services[0] = \"$1\"" $MANIFEST

cf push --no-route -f manifest.yml -t 180 --strategy rolling
cf push --no-route -f $MANIFEST -t 180 --strategy rolling
# cf map-route $APP_NAME apps.internal --hostname $APP_NAME
# Give Grafana a public route for now. Might be able to swap to internal route later.
cf map-route "$APP_NAME" app.cloud.gov --hostname "${APP_NAME}"
Expand Down
1 change: 1 addition & 0 deletions tdrs-backend/plg/grafana/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ applications:
GF_PATHS_PLUGINS: "/conf/provisioning/plugins"
GF_SERVER_HTTP_PORT: 8080
GF_DATABASE_TYPE: postgres
GF_DATABASE_SSL_MODE: require
command: |
HOST=$(echo $VCAP_SERVICES | jq -r '."aws-rds"[0].credentials.host')
PORT=$(echo $VCAP_SERVICES | jq -r '."aws-rds"[0].credentials.port')
Expand Down

0 comments on commit a8cb835

Please sign in to comment.