#!/usr/bin/env bash # Print all local service URLs for the current Lima VM IP. set -euo pipefail echo "==> Getting Lima VM IP..." LIMA_IP=$(limactl shell sunbeam hostname -I | awk '{print $1}') if [[ -z "$LIMA_IP" ]]; then echo "ERROR: Could not determine Lima VM IP. Is the 'sunbeam' VM running?" >&2 exit 1 fi BASE="${LIMA_IP}.sslip.io" echo "" echo "Sunbeam local URLs (Lima IP: $LIMA_IP)" echo "============================================" echo " Docs: https://docs.${BASE}" echo " Meet: https://meet.${BASE}" echo " Drive: https://drive.${BASE}" echo " Mail: https://mail.${BASE}" echo " Messages: https://messages.${BASE}" echo " People: https://people.${BASE}" echo " Source: https://src.${BASE}" echo " Auth: https://auth.${BASE}" echo " S3: https://s3.${BASE}" echo "" echo " Linkerd viz: kubectl port-forward -n mesh svc/linkerd-viz 8084:8084" echo " then open http://localhost:8084" echo ""