Skip to content

Commit 52b91b7

Browse files
committed
Experiment with devcontainer setup
1 parent d258254 commit 52b91b7

File tree

2 files changed

+40
-29
lines changed

2 files changed

+40
-29
lines changed

.devcontainer/devcontainer.json

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
11
{
2-
"name": "MongoDB Atlas and Google Cloud ADK Agents",
3-
"dockerComposeFile": "docker-compose.yml",
4-
"service": "adk",
5-
"features": {
6-
"ghcr.io/devcontainers/features/python:1": {}
7-
},
8-
"updateContentCommand": "bash .devcontainer/install-mongodb-db-tools.sh && bash .devcontainer/import.sh && bash .devcontainer/install-dependencies.sh",
9-
"postCreateCommand": "",
10-
"postAttachCommand": "",
11-
"postStartCommand": "",
12-
"customizations": {
13-
"codespaces": {
14-
"openFiles": [
15-
"INSTRUCTIONS.md"
16-
]
17-
},
18-
"vscode": {
19-
"extensions": [
20-
"mongodb.mongodb-vscode",
21-
"ms-python.python"
22-
]
23-
}
24-
},
25-
"forwardPorts": [
26-
27017
27-
],
28-
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
29-
}
2+
"name": "MongoDB Atlas and Google Cloud ADK Agents",
3+
"dockerComposeFile": "docker-compose.yml",
4+
"service": "adk",
5+
"features": {
6+
"ghcr.io/devcontainers/features/python:1": {}
7+
},
8+
"updateContentCommand": "bash .devcontainer/install-mongodb-db-tools.sh && bash .devcontainer/import.sh && bash .devcontainer/install-dependencies.sh",
9+
"postCreateCommand": "",
10+
"postAttachCommand": "",
11+
"postStartCommand": "",
12+
"customizations": {
13+
"codespaces": {
14+
"openFiles": [
15+
"INSTRUCTIONS.md",
16+
"mongodb-groceries-agent/agent.py"
17+
]
18+
},
19+
"vscode": {
20+
"extensions": [
21+
"mongodb.mongodb-vscode",
22+
"ms-python.python"
23+
],
24+
"settings": {
25+
"workbench.editorAssociations": {
26+
"*.md": "vscode.markdown.preview.editor"
27+
}
28+
}
29+
}
30+
},
31+
"forwardPorts": [
32+
27017
33+
],
34+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
35+
}

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
"connectionString": "mongodb://localhost:27017"
66
}
77
],
8-
"mdb.showOverviewPageAfterInstall": false
8+
"mdb.showOverviewPageAfterInstall": false,
9+
"settings": {
10+
"workbench.editorAssociations": {
11+
"*.md": "vscode.markdown.preview.editor"
12+
}
13+
}
914
}

0 commit comments

Comments
 (0)