-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdv-developer.cmd
93 lines (75 loc) · 3.14 KB
/
dv-developer.cmd
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
echo "....................................................................................................................."
echo "........................................... Data Vault Starter .................................................."
echo "....................................................................................................................."
echo This will install and configure dbt, datavault4dbt and turbovault4dbt.
PAUSE
echo Creating virtual python environment
python -m venv dbt-env
echo Activating virtual python environment
call dbt-env\Scripts\activate
echo Setuptools
python -m ensurepip --upgrade
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
echo Installing dbt-oracle
dbt-env\Scripts\python -m pip install --upgrade -r conf\requirements.txt
set PATH="%PATH%;C:\Program Files\Git\bin"
echo Cloning Repositories
rmdir /s /q .\datavault4dbt
rmdir /s /q .\turbovault4dbt
git clone -b odi-centered https://github.com/universe-designer/datavault4dbt.git
git clone -b odi-centered https://github.com/universe-designer/turbovault4dbt.git
mkdir libs
cd libs
git clone https://github.com/dbt-labs/dbt-utils.git
git clone https://github.com/Snowflake-Labs/dbt_constraints.git
cd ..
echo Copying configuration files
xcopy /s /F conf\profiles.yml %userprofile%\.dbt\ /Y
xcopy /s conf\dbt_project.yml datavault4dbt /Y
xcopy /s conf\.gitignore datavault4dbt /Y
xcopy /s conf\packages.yml datavault4dbt /Y
xcopy /s conf\config.ini turbovault4dbt /Y
xcopy /s templates\Excel turbovault4dbt\metadata_ddl\Excel /Y
move dv-generator.cmd datavault4dbt
move dv-session.cmd datavault4dbt
echo unversion config files
git update-index --skip-worktree turbovault4dbt\config.ini
git update-index --skip-worktree datavault4dbt\dbt_project.yml
git update-index --skip-worktree datavault4dbt\packages.yml
echo Configuring dbt
setx ORA_PYTHON_DRIVER_TYPE thin
set ORA_PYTHON_DRIVER_TYPE=thin
cd datavault4dbt
dbt deps
echo Installation completed! Here is your cat!
echo ""
echo " \`-._ __"
echo " \\ `-..____,.' `."
echo " :`. / \`."
echo " : ) : : \"
echo " ;' ' ; | :"
echo " ).. .. .:.`.; :"
echo " /::... .:::... ` ;"
echo " ; _ ' __ /:\"
echo " `:o> /\o_> ;:. `."
echo " `-`.__ ; __..--- /:. \"
echo " === \_/ ;=====_.':. ;"
echo " ,/'`--'...`--.... ;"
echo " ; ;"
echo " .' ;"
echo " .' ;"
echo " .' .. , . ;"
echo " : ::.. / ;::. |"
echo " / `.;::. | ;:.. ;"
echo " : |:. : ;:. ;"
echo " : :: ;:.. |. ;"
echo " : :; :::....| |"
echo " /\ ,/ \ ;:::::; ;"
echo " .:. \:..| : ; '.--| ;"
echo " ::. :'' `-.,,; ;' ; ;"
echo ".-'. _.'\ / `; \,__: \"
echo "`---' `----' ; / \,.,,,/"
echo " `----`"
PAUSE