You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Add selective Edgehog provisioning commands to justfile (#1018)
Add new justfile tasks to provision and deprovision Edgehog
independently of Astarte, enabling faster development iterations
without the overhead of recreating the entire Astarte infrastructure.
- Add `provision-edgehog` task that checks for existing Astarte
installation and provisions it only if needed, then sets up
Edgehog services and creates the tenant
- Add `deprovision-edgehog` task that tears down Edgehog and device
runtime while preserving the Astarte cluster
Usage:
just provision-edgehog # Set up Edgehog (creates Astarte if missing)
just deprovision-edgehog # Tear down Edgehog (keep Astarte)
Signed-off-by: Omar <omar.brbutovic@secomind.com>
curl -sf http://api.astarte.localhost/housekeeping/health >/dev/null; then
137
+
echo "✅ Astarte is already running."
138
+
else
139
+
echo "⚠️ Astarte is not running. Starting Astarte..."
140
+
just _check-astarte-prereqs
141
+
just _configure-system
142
+
just _init-astarte
143
+
just _wait-astarte
144
+
echo "🏠 Checking if realm exists..."
145
+
if ! astartectl housekeeping realms list --astarte-url http://api.astarte.localhost -k astarte/compose/astarte-keys/housekeeping_private.pem | grep -q "test"; then
146
+
echo "🏠 Realm does not exist, creating it..."
147
+
just _create-astarte-realm
148
+
else
149
+
echo "✅ Realm already exists."
150
+
fi
151
+
fi
152
+
153
+
# Provision only Edgehog (will start Astarte if not running)
0 commit comments