Skip to content

Commit

Permalink
🔥 fix dbt up
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Thurimerla committed Jan 17, 2022
1 parent ea97a93 commit b354a9a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
24 changes: 24 additions & 0 deletions src/install_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sudo apt-get update

sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io


sudo curl -L "https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
13 changes: 8 additions & 5 deletions src/transform/dbt/setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

up() {
echo "Start: dbt"
echo "End: dbt"
}

down() {
echo "Start: dbt"
pip3 install dbt-postgres
mkdir ~/modelt_dbt
Expand All @@ -18,6 +13,14 @@ down() {
echo "End: dbt"
}

down() {
echo "Start: dbt"
pip3 uninstall dbt-postgres
pip3 uninstall dbt-core
rm -r ~/modelt_dbt
echo "End: dbt"
}

case $1 in up)
up
;;
Expand Down

0 comments on commit b354a9a

Please sign in to comment.