* delete platform code and workflows * delete more platform workflows * sunset kustomize (#23187) * sunset kustomize * remove build steps that use kustomize * remove k8s kustomize gke-kube-acceptance-tests * delete docker-compose files * remove platform from check_images_exist.sh * Working replacement script for docker * rename start script and add download files to gitignore * add args and download only option * integration test downloads docker compose files * remove helm charts * remove more platform files * add flags.yml * use version from gradle.properties instead of .env * Working replacement script for docker (#23227) * Working replacement script for docker * Working debugging line * rename start script and add download files to gitignore * add args and download only option * Made flags cleaner and more cleanup i've never used this flag pattern, its much easier than my usual way * warn about a sharp edge * Don't run when we don't know a command * better help spacing * add flags.yml --------- Co-authored-by: cpdeethree <conor@airbyte.io> Co-authored-by: Conor <cpdeethree@users.noreply.github.com> * remove more-secrets env --------- Co-authored-by: Charles <charles@airbyte.io> Co-authored-by: Topher Lubaway <asimplechris@gmail.com>
23 lines
1.0 KiB
Bash
Executable File
23 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
. run-ab-platform.sh -d # download the platform docker files necessary to run docker compose
|
|
. tools/lib/lib.sh
|
|
|
|
assert_root
|
|
|
|
echo "Starting app..."
|
|
|
|
# Detach so we can run subsequent commands
|
|
VERSION=dev TRACKING_STRATEGY=logging BASIC_AUTH_USERNAME="" BASIC_AUTH_PASSWORD="" docker compose up -d
|
|
|
|
# Sometimes source/dest containers using airbyte volumes survive shutdown, which need to be killed in order to shut down properly.
|
|
shutdown_cmd="docker compose down -v || docker kill \$(docker ps -a -f volume=airbyte_workspace -f volume=airbyte_data -f volume=airbyte_db -q) && docker compose down -v"
|
|
trap "echo 'docker compose logs:' && docker compose logs -t --tail 1000 && $shutdown_cmd" EXIT
|
|
|
|
echo "Waiting for services to begin"
|
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8000/api/v1/health)" != "200" ]]; do echo "Waiting for docker deployment.."; sleep 5; done
|
|
|
|
echo "Running integration tests via gradle"
|
|
SUB_BUILD=OCTAVIA_CLI ./gradlew :octavia-cli:integrationTest --rerun-tasks --scan
|