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

add support for grafana container #78

Merged
merged 1 commit into from
Dec 10, 2024
Merged
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
7 changes: 7 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
file: dockerfiles/Dockerfile
context: dockerfiles/kubernetes
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-kubernetes,roadiehq/broker:kubernetes
- name: Build Grafana
uses: docker/build-push-action@v4
with:
push: true
file: dockerfiles/Dockerfile
context: dockerfiles/grafana
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-grafana,roadiehq/broker:grafana
- name: Build Sonarqube
uses: docker/build-push-action@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/argocd/start
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash

if [ -z "ARGOCD_URL"]; then
if [ -z "$ARGOCD_URL" ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied from this file, and it wasnt working.

echo "You must provide ARGOCD_URL"
exit 1
fi

if [ -z "ARGOCD_AUTH_TOKEN"]; then
if [ -z "$ARGOCD_AUTH_TOKEN" ]; then
echo "You must provide ARGOCD_AUTH_TOKEN"
exit 1
fi
Expand Down
20 changes: 20 additions & 0 deletions dockerfiles/grafana/accept.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"public": [
{
"//": "Get broker connection status",
"method": "GET",
"path": "/healthcheck"
}
],
"private": [
{
"method": "GET",
"path": "/api/*",
"origin": "${GRAFANA_URL}",
"auth": {
"scheme": "bearer",
"token": "${GRAFANA_TOKEN}"
}
},
]
}
18 changes: 18 additions & 0 deletions dockerfiles/grafana/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e

if [ -z "$GRAFANA_URL" ]; then
echo "You must provide GRAFANA_URL"
exit 1
fi

if [ -z "$GRAFANA_TOKEN" ]; then
echo "You must provide GRAFANA_TOKEN"
exit 1
fi

echo 'asdfsdfa'


exec broker --verbose --disableBodyVarsSubstitution --disableHeaderVarsSubstitution
Loading