Skip to content

Commit

Permalink
updated dev setup and environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-scott committed Mar 3, 2024
1 parent 37654e1 commit ecc9040
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"postStartCommand": "bash .devcontainer/setup_odbc.sh && bash .devcontainer/install_pyenv.sh && bash .devcontainer/setup_env.sh",
"runArgs": [
"--env-file", "${localWorkspaceFolder}/.devcontainer/test.env"
]
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"postStartCommand": "sudo bash .devcontainer/setup_odbc.sh && bash .devcontainer/install_pyenv.sh && bash .devcontainer/setup_env.sh",
"containerEnv": {
"SQLSERVER_TEST_DRIVER": "ODBC Driver 18 for SQL Server",
"SQLSERVER_TEST_HOST": "127.0.0.1",
"SQLSERVER_TEST_USER": "SA",
"SQLSERVER_TEST_PASS": "L0calTesting!",
"SQLSERVER_TEST_PORT": "1433",
"SQLSERVER_TEST_DBNAME": "TestDB",
"SQLSERVER_TEST_ENCRYPT": "true",
"SQLSERVER_TEST_TRUST_CERT": "true",
"DBT_TEST_USER_1": "DBT_TEST_USER_1",
"DBT_TEST_USER_2": "DBT_TEST_USER_2",
"DBT_TEST_USER_3": "DBT_TEST_USER_3"
}
}
2 changes: 2 additions & 0 deletions .devcontainer/setup_env.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cp test.env.sample test.env

pyenv install 3.10.7
pyenv virtualenv 3.10.7 dbt-sqlserver
pyenv activate dbt-sqlserver
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.txt text eol=lf

0 comments on commit ecc9040

Please sign in to comment.