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

fix: installing bugs on macos #210

Merged
merged 1 commit into from
Jul 10, 2024
Merged
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
13 changes: 10 additions & 3 deletions scripts/developer/install_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ERR_EXIT=1
CURL_TRY="--connect-timeout 30 --retry 5 --retry-delay 1 --retry-max-time 10 "

BASE_DIR=$(dirname $(realpath -s $0))
BASE_DIR=${BASE_DIR:-.}
CLUSTER_NAME=$1

[[ -f "${BASE_DIR}/.env" && -z "$DEBUG_VERSION" ]] && . "${BASE_DIR}/.env"
Expand Down Expand Up @@ -400,7 +401,7 @@ preload_images(){
fi

find $BASE_DIR/images -type f -name '*.tar.gz' | while read filename; do
$sh_c "gunzip -c ${filename} | docker load -"
$sh_c "gunzip -c ${filename} | docker load"
done
fi
}
Expand Down Expand Up @@ -572,8 +573,8 @@ _END
ensure_success $sh_c "$KUBECTL apply -f cm-backup-config.yaml"

# patch
ensure_success $sh_c "$KUBECTL apply -f ${BASE_DIR}/deploy/patch-globalrole-workspace-manager.yaml"
ensure_success $sh_c "$KUBECTL apply -f ${BASE_DIR}/deploy/patch-notification-manager.yaml"
retry_cmd $sh_c "$KUBECTL apply -f ${BASE_DIR}/deploy/patch-globalrole-workspace-manager.yaml"
retry_cmd $sh_c "$KUBECTL apply -f ${BASE_DIR}/deploy/patch-notification-manager.yaml"

# install app-store charts repo to app sevice
log_info 'waiting for appservice'
Expand Down Expand Up @@ -691,13 +692,19 @@ main(){
check_vault

log_info 'Starting Terminus ...'
ensure_success $sh_c "${KUBECTL} rollout restart sts bfl -n user-space-${username}"
check_desktop

log_info 'Installation wizard is complete\n'

ip=$(ping -c 1 "$HOSTNAME" |awk -F '[()]' '/icmp_seq/{print $2}')

# install complete
echo -e " Terminus is running"
echo -e " Open your browser and visit."
echo -e "${GREEN_LINE}"
echo -e " http://${ip}:30180/"
echo -e "${GREEN_LINE}"
echo -e " "
echo -e " User: ${username} "
echo -e " Password: ${userpwd} "
Expand Down
Loading