mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
10 lines
313 B
Bash
10 lines
313 B
Bash
#!/bin/bash
|
|
|
|
kubectl -n services port-forward svc/postgres-postgresql 5432:5432 & PF=$!
|
|
|
|
POSTGRES_PASS=$(kubectl -n villas-demo get secret postgres-credentials -o json | jq -r .data.password | base64 -d)
|
|
|
|
go run start.go -dbhost localhost -dbname villas -dbuser villas -dbpass ${POSTGRES_PASS}
|
|
|
|
kill $PF
|
|
wait $PF
|