sync dari sicabe-doc/deploy @ e8f8fde
This commit is contained in:
+5
-3
@@ -713,9 +713,11 @@ bootstrap_starrocks() {
|
||||
# verify-phase4 KC_BASE). single-host → localhost:12080; cluster → <owner>:12080.
|
||||
# Sebelumnya pakai KEYCLOAK_URL (default localhost) → issuer salah saat keycloak existing.
|
||||
local kc_base
|
||||
kc_base="$(sicabe_local_url http KEYCLOAK_HOST "${KEYCLOAK_PORT:-12080}" KEYCLOAK_URL)"
|
||||
# Alamat Keycloak server→server (dari container StarRocks): service/owner + port container.
|
||||
local kc_internal="http://${KEYCLOAK_HOST:-keycloak}:${KEYCLOAK_INTERNAL_PORT:-8080}"
|
||||
kc_base="$(sicabe_keycloak_url)"
|
||||
# Alamat Keycloak server→server (dari container StarRocks). KEYCLOAK_INTERNAL_URL bila
|
||||
# diset (Keycloak EKSTERNAL ber-URL penuh, mis. https://sso.example.com), selain itu
|
||||
# dibangun dari HOST:PORT (mis. 100.93.54.108:12080).
|
||||
local kc_internal="${KEYCLOAK_INTERNAL_URL:-http://${KEYCLOAK_HOST:-keycloak}:${KEYCLOAK_INTERNAL_PORT:-8080}}"
|
||||
|
||||
sr_mysql() {
|
||||
mysql -h 127.0.0.1 -P "${sr_port}" -u root -p"${STARROCKS_ROOT_PASSWORD}" -e "$1" 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user