data-dwh-dbt-project/ci/ci-vm-setup.sh
2025-04-08 12:32:56 +02:00

10 lines
326 B
Bash

# Start container
docker compose -f ~/dbt-ci/docker-compose.yml --env-file ~/dbt-ci/.env up -d
# Run script to set things up in Postgres (DB, FDWs, etc)
envsubst < postgres-initial-setup.sql | psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres
# Copy profiles file
mkdir -p ~/.dbt
cp ci.profiles.yml ~/.dbt/profiles.yml