File tree Expand file tree Collapse file tree
phala-cloud-prelaunch-script Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22echo " ----------------------------------------------"
3- echo " Running Phala Cloud Pre-Launch Script v0.0.5 "
3+ echo " Running Phala Cloud Pre-Launch Script v0.0.6 "
44echo " ----------------------------------------------"
55set -e
66
@@ -146,6 +146,11 @@ if [[ -e /var/run/dstack.sock ]]; then
146146else
147147 export DSTACK_APP_ID=$( curl -s --unix-socket /var/run/tappd.sock http://dstack/prpc/Tappd.Info | jq -j .app_id)
148148fi
149+ # Check if app-compose.json has default_gateway_domain field and DSTACK_GATEWAY_DOMAIN is not set
150+ # If true, set DSTACK_GATEWAY_DOMAIN from app-compose.json
151+ if [[ $( jq ' has("default_gateway_domain")' app-compose.json) == " true" && -z " $DSTACK_GATEWAY_DOMAIN " ]]; then
152+ export DSTACK_GATEWAY_DOMAIN=$( jq -j ' .default_gateway_domain' app-compose.json)
153+ fi
149154
150155echo " ----------------------------------------------"
151156echo " Script execution completed"
You can’t perform that action at this time.
0 commit comments