From c3242b6bc4455b9db5316a2d2650481c6342dec2 Mon Sep 17 00:00:00 2001 From: Ben Duncan <5178243+benduncan@users.noreply.github.com> Date: Mon, 20 Apr 2026 12:09:40 +1000 Subject: [PATCH] Improved reset-dev-env and validated --- scripts/reset-dev-env.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/reset-dev-env.sh b/scripts/reset-dev-env.sh index b8cc76d5e..4148ecf13 100755 --- a/scripts/reset-dev-env.sh +++ b/scripts/reset-dev-env.sh @@ -234,6 +234,9 @@ sudo update-ca-certificates echo "==> Starting spinifex.target" sudo systemctl start spinifex.target +# Wait for services to start +sleep 5 + # --- Build + import LB image (needs services running) --- echo "==> Building and importing LB image" cd "$PROJECT_ROOT" && make build-lb-agent @@ -283,8 +286,6 @@ else sudo /usr/local/bin/spx admin images import --name "$IMAGE_NAME" fi -aws ec2 describe-images - # --- Smoke-test instance --- echo "==> Launching smoke-test instance" if grep -q 'AuthenticAMD' /proc/cpuinfo; then @@ -300,7 +301,6 @@ if [ -z "$AMI_ID" ] || [ "$AMI_ID" = "None" ]; then fi SUBNET_ID=$(aws ec2 describe-subnets \ - --filters "Name=map-public-ip-on-launch,Values=true" \ --query "Subnets[0].SubnetId" --output text 2>/dev/null) if [ -z "$SUBNET_ID" ] || [ "$SUBNET_ID" = "None" ]; then SUBNET_ID=$(aws ec2 describe-subnets --query "Subnets[0].SubnetId" --output text)