feat(usable): integrate current dbtool implementation snapshot
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -19,7 +19,8 @@ sidecar_image="${QA_SIDECAR_IMAGE:-paperclip-local-db-codex}"
|
||||
docker_network="${QA_DOCKER_NETWORK:-dbtool-cli-v1_default}"
|
||||
postgres_container="${QA_POSTGRES_CONTAINER:-dbtool-cli-v1-postgres-1}"
|
||||
mysql_container="${QA_MYSQL_CONTAINER:-dbtool-cli-v1-mysql-1}"
|
||||
postgres_user="${QA_POSTGRES_USER:-dbtool}"
|
||||
postgres_admin_user="${QA_POSTGRES_ADMIN_USER:-postgres}"
|
||||
postgres_admin_password="${QA_POSTGRES_ADMIN_PASSWORD:-dbtoolroot}"
|
||||
postgres_db="${QA_POSTGRES_DB:-dbtool_demo}"
|
||||
mysql_root_password="${QA_MYSQL_ROOT_PASSWORD:-dbtoolroot}"
|
||||
sidecar_root="/tmp/work"
|
||||
@@ -42,8 +43,8 @@ mkdir -p "$output_dir"
|
||||
|
||||
docker image inspect "$sidecar_image" >/dev/null
|
||||
|
||||
docker exec -i "$postgres_container" \
|
||||
psql -v ON_ERROR_STOP=1 -U "$postgres_user" -d "$postgres_db" \
|
||||
docker exec -e "PGPASSWORD=$postgres_admin_password" -i "$postgres_container" \
|
||||
psql -v ON_ERROR_STOP=1 -U "$postgres_admin_user" -d "$postgres_db" \
|
||||
< "$root_dir/examples/fixtures/postgres/init.sql" >/dev/null
|
||||
|
||||
docker exec -i "$mysql_container" \
|
||||
@@ -78,10 +79,10 @@ docker exec \
|
||||
-e QA_EXECUTION_PATH=sidecar \
|
||||
-e QA_COMMIT_SHA="$commit_sha" \
|
||||
-e QA_BRANCH_NAME="$branch_name" \
|
||||
-e DBTOOL_POSTGRES_HOST=postgres \
|
||||
-e DBTOOL_POSTGRES_HOST="${DBTOOL_POSTGRES_HOST:-$postgres_container}" \
|
||||
-e DBTOOL_POSTGRES_PORT=5432 \
|
||||
-e DBTOOL_POSTGRES_NET_PORT=59999 \
|
||||
-e DBTOOL_MYSQL_HOST=mysql \
|
||||
-e DBTOOL_MYSQL_HOST="${DBTOOL_MYSQL_HOST:-$mysql_container}" \
|
||||
-e DBTOOL_MYSQL_PORT=3306 \
|
||||
-e DBTOOL_MYSQL_NET_PORT=59998 \
|
||||
"$cid" \
|
||||
|
||||
Reference in New Issue
Block a user