feat(usable): package gui-host validation snapshot
Some checks failed
release-smoke / macos-13 / x86_64-apple-darwin (push) Has been cancelled
release-smoke / ubuntu-latest / x86_64-unknown-linux-gnu (push) Has been cancelled
release-smoke / windows-latest / x86_64-pc-windows-msvc (push) Has been cancelled

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Paperclip CTO
2026-03-31 10:21:36 +00:00
parent 19aeb7784b
commit a28dab4cd9
47 changed files with 6894 additions and 771 deletions

View File

@@ -4,11 +4,18 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
COMPOSE_FILE="${COMPOSE_FILE:-$ROOT_DIR/docker-compose.demo.yml}"
SERVICE_NAME="${POSTGRES_SERVICE_NAME:-postgres}"
CONTAINER_NAME="${POSTGRES_CONTAINER_NAME:-dbtool-cli-v1-postgres-1}"
POSTGRES_USER="${POSTGRES_USER:-dbtool}"
POSTGRES_DB="${POSTGRES_DB:-dbtool_demo}"
docker compose -f "$COMPOSE_FILE" exec -T "$SERVICE_NAME" \
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB" \
< "$ROOT_DIR/examples/fixtures/postgres/init.sql"
if docker compose version >/dev/null 2>&1; then
docker compose -f "$COMPOSE_FILE" exec -T "$SERVICE_NAME" \
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB" \
< "$ROOT_DIR/examples/fixtures/postgres/init.sql"
else
docker exec -i "$CONTAINER_NAME" \
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -d "$POSTGRES_DB" \
< "$ROOT_DIR/examples/fixtures/postgres/init.sql"
fi
echo "PostgreSQL demo data seeded into $POSTGRES_DB."