-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #592 from openedx/cag/private-dbt-repo
fix: allow to setup private dbt repository
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,15 @@ echo "Installing dbt packages..." | |
|
||
pip install -r /app/aspects/dbt/requirements.txt | ||
|
||
{% if DBT_SSH_KEY %} | ||
mkdir -p /root/.ssh | ||
echo "{{ DBT_SSH_KEY}}" | tr -d '\r' > /root/.ssh/id_rsa | ||
chmod 600 /root/.ssh/id_rsa | ||
eval `ssh-agent -s` | ||
ssh -o StrictHostKeyChecking=no [email protected] || true | ||
ssh-add /root/.ssh/id_rsa | ||
{% endif %} | ||
|
||
rm -rf {{ DBT_REPOSITORY_PATH }} | ||
|
||
echo "Installing aspects-dbt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,15 @@ echo "Installing dbt packages..." | |
|
||
pip install -r /app/aspects/dbt/requirements.txt | ||
|
||
{% if DBT_SSH_KEY %} | ||
mkdir -p /root/.ssh | ||
echo "{{ DBT_SSH_KEY}}" | tr -d '\r' > /root/.ssh/id_rsa | ||
chmod 600 /root/.ssh/id_rsa | ||
eval `ssh-agent -s` | ||
ssh -o StrictHostKeyChecking=no [email protected] || true | ||
ssh-add /root/.ssh/id_rsa | ||
{% endif %} | ||
|
||
rm -rf {{ DBT_REPOSITORY_PATH }} | ||
|
||
echo "Installing aspects-dbt" | ||
|