Skip to content

Commit

Permalink
fix: .envrc Ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
1ambda committed Sep 16, 2023
1 parent 2ecdccc commit 4595f4f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .envrc → .envrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ layout_virtualenv() {
local pyversion=$1
local pvenv=$2
if [ -n "$(which pyenv virtualenv)" ]; then
pyenv virtualenv --force --quiet ${pyversion} ${pvenv}-${pyversion}
pyenv virtualenv --force --quiet ${pyversion} ${pvenv}
fi
pyenv local --unset
}
Expand Down Expand Up @@ -44,10 +44,10 @@ else
fi

# Activate Environment
echo -e "${TAG} Activating pyenv virtualenv ${pvenv}-${pyversion}"
echo -e "${TAG} Activating pyenv virtualenv ${pvenv}"
use python ${pyversion}
layout virtualenv ${pyversion} ${pvenv}
layout activate ${pvenv}-${pyversion}
layout activate ${pvenv}
if ! [ -x "$(command -v poetry)" ]; then
pip3 install poetry
pip install --upgrade pip
Expand Down
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### dbt ###
target/
dbt_modules/
dbt_packages/
logs/

### direnv ###
.direnv
.envrc

# Custom
__pycache__/
notebook/.ipynb_checkpoints/
Expand All @@ -7,9 +17,6 @@ notebook/.ipynb_checkpoints/
.ruff_cache/
logs/

# Created by https://www.toptal.com/developers/gitignore/api/maven,java,intellij+all,intellij+iml,git
# Edit at https://www.toptal.com/developers/gitignore?templates=maven,java,intellij+all,intellij+iml,git

### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ Then access the lakehouse services.
# Run cdc-related containers
make compose.cdc;

# Register debezium mysql connector
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" \
http://localhost:8083/connectors/ -d @docker/debezium/register-cdc-inventory-plain.json
# Register debezium mysql connector using Avro Schema Registry
make debezium.register.customers;

curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" \
http://localhost:8083/connectors/ -d @docker/debezium/register-avro-inventory_products.json
# Register debezium mysql connector using JSON Format
make debezium.register.products;
```

## DBT Starter kit
Expand Down

0 comments on commit 4595f4f

Please sign in to comment.