Skip to content

Commit ecc9040

Browse files
committed
updated dev setup and environment
1 parent 37654e1 commit ecc9040

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.devcontainer/devcontainer.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
{
2-
"name": "Python 3",
3-
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
4-
"features": {
5-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
6-
},
7-
"postStartCommand": "bash .devcontainer/setup_odbc.sh && bash .devcontainer/install_pyenv.sh && bash .devcontainer/setup_env.sh",
8-
"runArgs": [
9-
"--env-file", "${localWorkspaceFolder}/.devcontainer/test.env"
10-
]
2+
"name": "Python 3",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
4+
"features": {
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
6+
},
7+
"postStartCommand": "sudo bash .devcontainer/setup_odbc.sh && bash .devcontainer/install_pyenv.sh && bash .devcontainer/setup_env.sh",
8+
"containerEnv": {
9+
"SQLSERVER_TEST_DRIVER": "ODBC Driver 18 for SQL Server",
10+
"SQLSERVER_TEST_HOST": "127.0.0.1",
11+
"SQLSERVER_TEST_USER": "SA",
12+
"SQLSERVER_TEST_PASS": "L0calTesting!",
13+
"SQLSERVER_TEST_PORT": "1433",
14+
"SQLSERVER_TEST_DBNAME": "TestDB",
15+
"SQLSERVER_TEST_ENCRYPT": "true",
16+
"SQLSERVER_TEST_TRUST_CERT": "true",
17+
"DBT_TEST_USER_1": "DBT_TEST_USER_1",
18+
"DBT_TEST_USER_2": "DBT_TEST_USER_2",
19+
"DBT_TEST_USER_3": "DBT_TEST_USER_3"
20+
}
1121
}

.devcontainer/setup_env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cp test.env.sample test.env
2+
13
pyenv install 3.10.7
24
pyenv virtualenv 3.10.7 dbt-sqlserver
35
pyenv activate dbt-sqlserver

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.txt text eol=lf

0 commit comments

Comments
 (0)