Skip to content

Commit b358a12

Browse files
committed
minor changes to ensure VENV path is set
1 parent 1367318 commit b358a12

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.devcontainer/.bashrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Export VENV_DIR environment variable for virtual environment path
2+
export VENV_DIR="$HOME/.venv/mcpgateway"

.devcontainer/devcontainer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@
1111
"extensions": [
1212
"ms-python.python",
1313
"ms-azuretools.vscode-docker"
14-
]
14+
],
15+
"settings": {
16+
"terminal.integrated.profiles.linux": {
17+
"bash-venv": {
18+
"path": "/bin/bash",
19+
"args": ["-c", "source ~/.venv/mcpgateway/bin/activate && exec bash"]
20+
}
21+
},
22+
"terminal.integrated.defaultProfile.linux": "bash-venv"
23+
}
1524
}
1625
},
1726
"remoteEnv": {
18-
"MCPGATEWAY_DEV_MODE": "true"
27+
"MCPGATEWAY_DEV_MODE": "true",
28+
"VENV_DIR": "/Users/mg/.venv/mcpgateway"
1929
}
2030
}

.devcontainer/postCreateCommand.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ make install-dev
1414
make test
1515

1616
echo "Devcontainer setup complete."
17+
18+
# Activate the virtual environment for the current session
19+
source ~/.venv/mcpgateway/bin/activate

0 commit comments

Comments
 (0)