mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com> Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com> Co-authored-by: Laurin Quast <laurinquast@googlemail.com> Co-authored-by: Dotan Simha <dotansimha@gmail.com>
36 lines
1.1 KiB
Bash
Executable file
36 lines
1.1 KiB
Bash
Executable file
#/bin/sh
|
|
|
|
echo "💀 Killing all running Docker containers..."
|
|
docker kill $(docker ps -q)
|
|
|
|
echo "🧹 Clearing existing Docker volumes..."
|
|
rm -rf ../docker/.hive || true
|
|
|
|
echo "✨ Clearing unused Docker images and volumes..."
|
|
docker system prune -f
|
|
|
|
echo "🔨 Build services and libraries for running locally..."
|
|
pnpm build
|
|
|
|
echo "🌲 Configuring environment variables..."
|
|
export COMMIT_SHA="local"
|
|
export RELEASE="local"
|
|
export BRANCH_NAME="local"
|
|
export BUILD_TYPE=""
|
|
export DOCKER_TAG=":local"
|
|
export DOCKER_REGISTRY=""
|
|
|
|
echo "📦 Building local Docker images..."
|
|
cd ..
|
|
docker buildx bake -f docker/docker.hcl build --load
|
|
|
|
echo "⬆️ Running all local containers..."
|
|
docker compose -f ./docker/docker-compose.community.yml -f ./docker/docker-compose.end2end.yml --env-file ./integration-tests/.env up -d --wait
|
|
|
|
echo "✅ E2E tests environment is ready. To run tests now, use:"
|
|
echo ""
|
|
echo " HIVE_APP_BASE_URL=http://localhost:8080 pnpm test:e2e"
|
|
echo ""
|
|
echo " or to open Cypress GUI:"
|
|
echo ""
|
|
echo " HIVE_APP_BASE_URL=http://localhost:8080 pnpm test:e2e:open"
|