-
Notifications
You must be signed in to change notification settings - Fork 6
/
.env.local
71 lines (63 loc) · 2.34 KB
/
.env.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/env bash
source ./.env.base
if [[ -f "./.env.custom.local" ]]; then
source ./.env.custom.local
fi
# Is overridden below only in the case of AIO
export MELTANO_STATE_AWS_ENDPOINT="http://localhost:19000"
if [[ "$1" == "vertica" ]]; then
export MELTANO_TARGET="target-vertica"
export DBT_TARGET="vertica"
export DB_HOST="localhost"
export DB_PORT=5433
export DB_USER="demouser"
export DB_PASS=demopass
export DB_NAME=vmart
export GOODDATA_PROFILES="local"
elif [[ "$1" == "motherduck" ]]; then
export MELTANO_TARGET="target-duckdb"
export DBT_TARGET="motherduck"
export DB_NAME=gdp_dev_local
export DBT_INCREMENTAL_STRATEGY="delete+insert"
export GOODDATA_PROFILES="local"
# No DB endpoint props, they are embedded in DuckDB driver
else
if [[ "$1" == "aio" ]]; then
# Used in docker-compose, where we have to use docker host(service) names instead of localhost
export DB_HOST="gooddata-cn-ce"
export GOODDATA_PROFILES="aio"
export GOODDATA_OVERRIDE_HOST="localhost"
export MELTANO_STATE_AWS_ENDPOINT="http://minio:9000"
else
export DB_HOST="localhost"
export GOODDATA_PROFILES="local"
fi
# TODO - merge strategy should be introduced in 1.6, but it still does not work with 1.7
export DBT_INCREMENTAL_STRATEGY="delete+insert"
export MELTANO_TARGET="target-postgres"
export DBT_TARGET="postgres"
export DB_PORT=5432
export DB_USER="demouser"
export DB_PASS="demopass"
export DB_NAME=demo
fi
export ELT_ENVIRONMENT="cicd_dev_local"
# Meltano uses local Minio instead of AWS S3
export MELTANO_STATE_AWS_ACCESS_KEY_ID="minio_abcde_k1234567"
export MELTANO_STATE_AWS_SECRET_ACCESS_KEY="minio_abcde_k1234567_secret1234567890123"
export MELTANO_STATE_AWS_BUCKET="meltano"
# Gitlab (for testing sending messages to merge requests)
export CI_MERGE_REQUEST_PROJECT_ID=37824613
export CI_MERGE_REQUEST_IID=1
# GitHub (for testing sending messages to pull requests)
# GitHub is preferred over Gitlab in Python SDK. Unset GitHub variables to test Gitlab.
export GITHUB_REPOSITORY="jaceksan/gooddata-data-pipeline"
export GITHUB_REF_NAME="24/merge"
export GITHUB_ACTOR="jaceksan"
# Set it to a commit SHA which you want to test in dbt Cloud
export GOODDATA_GITHUB_SHA=""
# Prefix DB related vars with DBT_
source ./.env.prefix_dbt_vars
# GoodData
export GOODDATA_ENVIRONMENT_ID="development"
unset GOODDATA_UPPER_CASE