File tree Expand file tree Collapse file tree
infrastructure/scripts/spring-ai Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66echo " Starting deployment process for Spring AI Agent..."
77
8+ # Get ECR URI - exit if not found
9+ echo " Getting ECR URI..."
10+ if ! ECR_URI=$( aws ecr describe-repositories --repository-names unicorn-spring-ai-agent | jq --raw-output ' .repositories[0].repositoryUri' 2> /dev/null) ; then
11+ echo " Error: Could not get ECR URI. Repository 'unicorn-spring-ai-agent' may not exist. Exiting."
12+ exit 1
13+ else
14+ echo " ECR URI: $ECR_URI "
15+ fi
16+
817# Login to ECR
918echo " Logging in to Amazon ECR..."
1019aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $ECR_URI
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ spec:
170170EOF
171171kubectl apply -f ~ /environment/unicorn-spring-ai-agent/k8s/ingress.yaml
172172
173- # Checking the application status ...
173+ echo " Checking the application status ..."
174174kubectl wait deployment unicorn-spring-ai-agent -n unicorn-spring-ai-agent --for condition=Available=True --timeout=120s
175175kubectl get deployment unicorn-spring-ai-agent -n unicorn-spring-ai-agent
176176SVC_URL=http://$( kubectl get ingress unicorn-spring-ai-agent -n unicorn-spring-ai-agent -o jsonpath=' {.status.loadBalancer.ingress[0].hostname}' )
You can’t perform that action at this time.
0 commit comments