data-dwh-dbt-project/ci/ci-vm-setup.sh

11 lines
326 B
Bash
Raw Normal View History

2025-04-02 15:00:22 +02:00
# Start container
2025-04-08 12:32:56 +02:00
docker compose -f ~/dbt-ci/docker-compose.yml --env-file ~/dbt-ci/.env up -d
2025-04-02 15:00:22 +02:00
# Run script to set things up in Postgres (DB, FDWs, etc)
2025-04-04 14:46:31 +02:00
2025-04-02 15:00:22 +02:00
envsubst < postgres-initial-setup.sql | psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres
# Copy profiles file
2025-04-04 14:46:31 +02:00
mkdir -p ~/.dbt
2025-04-02 15:00:22 +02:00
cp ci.profiles.yml ~/.dbt/profiles.yml