feat: init cloudmon dashboard mit d3.js mindmap
This commit is contained in:
parent
8ce5ba4214
commit
433de8809a
4 changed files with 18 additions and 12 deletions
|
|
@ -1,8 +1,12 @@
|
||||||
container:
|
container:
|
||||||
privileged: true
|
privileged: true
|
||||||
network: "container:forgejo-runner"
|
network: "container:forgejo-runner"
|
||||||
options: "-v /var/run/docker.sock:/var/run/docker.sock"
|
|
||||||
|
# KORRIGIERT: Der Docker-Socket UND das zentrale Terraform-Binary werden global injiziert!
|
||||||
|
options: "-v /var/run/docker.sock:/var/run/docker.sock -v /home/bast/build/mytfenv/terraform:/usr/local/bin/terraform:ro"
|
||||||
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "forgejo:host-gateway"
|
- "forgejo:host-gateway"
|
||||||
|
|
||||||
valid_volumes:
|
valid_volumes:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,7 @@ container:
|
||||||
privileged: true
|
privileged: true
|
||||||
network: "container:forgejo-runner"
|
network: "container:forgejo-runner"
|
||||||
options: "-v /var/run/docker.sock:/var/run/docker.sock"
|
options: "-v /var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
|
||||||
# --- HIER IST DIE DNS-RETTUNG FÜR DEN HOST-DAEMON ---
|
|
||||||
# Sobald Forgejo die Token-URL mit "forgejo:3005" ausgibt, weiß der Server-Daemon sofort, wohin damit!
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "forgejo:host-gateway"
|
- "forgejo:host-gateway"
|
||||||
|
|
||||||
valid_volumes:
|
valid_volumes:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,18 @@ ESCAPED_KUBE=$(awk '{
|
||||||
printf "%s\\n", $0
|
printf "%s\\n", $0
|
||||||
}' /output/config)
|
}' /output/config)
|
||||||
|
|
||||||
# Schiesst das absolut valide JSON-Paket an die Forgejo-API
|
# HIER DEFINIEREN WIR DEINE REPOSITORIES (Einfach mit Leerzeichen getrennt eintragen)
|
||||||
curl -s -X PUT "http://forgejo:3000/api/v1/repos/bast/my-app-sandbox/actions/secrets/KUBECONFIG_DATA" \
|
REPOS="my-app-sandbox boday_tf cloudmon"
|
||||||
-H "accept: application/json" \
|
|
||||||
-H "Authorization: token eb834b313f4ffe99bc507abc08c46eb74913707a" \
|
# Die Schleife aktualisiert alle Repositories nacheinander
|
||||||
-H "Content-Type: application/json" \
|
for REPO in $REPOS; do
|
||||||
-d "{\"data\": \"$ESCAPED_KUBE\"}"
|
echo "=> Synchronisiere Repo: $REPO"
|
||||||
|
curl -s -X PUT "http://forgejo:3000/api/v1/repos/bast/$REPO/actions/secrets/KUBECONFIG_DATA" \
|
||||||
|
-H "accept: application/json" \
|
||||||
|
-H "Authorization: token eb834b313f4ffe99bc507abc08c46eb74913707a" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "{\"data\": \"$ESCAPED_KUBE\"}"
|
||||||
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Secret erfolgreich synchronisiert!"
|
echo "Alle Secrets erfolgreich synchronisiert!"
|
||||||
|
|
|
||||||
BIN
terraform
Executable file
BIN
terraform
Executable file
Binary file not shown.
Loading…
Reference in a new issue