* Revert "Revert "Add dependencies to docker-compose (#19257)" (#19306)" This reverts commitb16f28fd4d. * Bump docker-compose version * test * Revert "test" This reverts commitc3b28c9ec3. * Bump docker compose version to 3.8 * test * test * Use a newer docker for platform build * test * Use docker compose v2 * Update docker for frontend e2e * Use docker compose v2 for e2e tests * Update tools to use docker compose v2 * Update more docker compose references to v2 * Update docker compose usage in docs * Update deploying airbyte docs * Fix permission * Case insensistive check * Add extra mention for docker compose in upgrading airbyte * Improve upgrade docker note
35 lines
1.7 KiB
Bash
Executable File
35 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
. tools/lib/lib.sh
|
|
|
|
assert_root
|
|
|
|
echo "Starting app..."
|
|
|
|
# todo (cgardens) - docker-compose 1.27.3 contained a bug that causes a failure if the volume path
|
|
# does not exist when the volume is created. It was fixed in 1.27.4. Github actions virtual envs,
|
|
# however, new ubuntu release upgraded to 1.27.3 on 09/24/20. Once github actions virtual envs
|
|
# upgrades to 1.27.4, we can stop manually making the directory.
|
|
mkdir -p /tmp/airbyte_local
|
|
|
|
# Detach so we can run subsequent commands
|
|
VERSION=dev BASIC_AUTH_USERNAME="" BASIC_AUTH_PASSWORD="" TRACKING_STRATEGY=logging docker compose up -d
|
|
# Uncomment for debugging. Warning, this is verbose.
|
|
# trap 'echo "docker compose logs:" && docker compose logs -t --tail 1000 && docker compose down && docker stop airbyte_ci_pg' EXIT
|
|
|
|
docker run --rm -d -p 5433:5432 -e POSTGRES_PASSWORD=secret_password -e POSTGRES_DB=airbyte_ci_source --name airbyte_ci_pg_source postgres
|
|
docker run --rm -d -p 5434:5432 -e POSTGRES_PASSWORD=secret_password -e POSTGRES_DB=airbyte_ci_destination --name airbyte_ci_pg_destination postgres
|
|
docker run --rm -d -p 6767:6767 --network=airbyte_airbyte_internal --mount type=bind,source="$(pwd)"/airbyte-webapp-e2e-tests/dummy_api.js,target=/index.js --name=dummy_api node:16-alpine "index.js"
|
|
|
|
echo "Waiting for health API to be available..."
|
|
# Retry loading the health API of the server to check that the server is fully available
|
|
until $(curl --output /dev/null --fail --silent --max-time 5 --head localhost:8001/api/v1/health); do
|
|
echo "Health API not available yet. Retrying in 10 seconds..."
|
|
sleep 10
|
|
done
|
|
|
|
echo "Running e2e tests via gradle"
|
|
SUB_BUILD=PLATFORM ./gradlew --no-daemon :airbyte-webapp-e2e-tests:e2etest -PcypressWebappKey=$CYPRESS_WEBAPP_KEY
|