Skip to content

Commit 8168b8b

Browse files
committed
Update container setup
1 parent 1debf6a commit 8168b8b

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Jupyter Notebook with MongoDB",
2+
"name": "GenAI Jupyter Notebooks with MongoDB",
33
"dockerComposeFile": "docker-compose.yml",
44
"service": "lab-runner",
55
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
@@ -11,11 +11,10 @@
1111
"cpus": 4
1212
},
1313
"containerEnv": {
14-
"SERVERLESS_URL": "https://vtqjvgchmwcjwsrela2oyhlegu0hwqnw.lambda-url.us-west-2.on.aws/",
14+
"PROXY_ENDPOINT": "https://vtqjvgchmwcjwsrela2oyhlegu0hwqnw.lambda-url.us-west-2.on.aws/",
1515
"MONGODB_URI": "mongodb://admin:mongodb@mongodb:27017/"
1616
},
17-
"updateContentCommand": "python3 -m pip install -r requirements.txt",
18-
"postCreateCommand": "",
17+
"postCreateCommand": "pip install -r requirements.txt",
1918
"customizations": {
2019
"codespaces": {
2120
"openFiles": []
@@ -24,7 +23,6 @@
2423
"extensions": [
2524
"ms-python.python",
2625
"ms-toolsai.jupyter",
27-
"ms-tools.vscode-jupyter",
2826
"mongodb.mongodb-vscode"
2927
]
3028
}

.devcontainer/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
lab-runner:
3-
image: mcr.microsoft.com/devcontainers/universal:2
3+
image: jupyter/base-notebook:latest
44
volumes:
55
- ../..:/workspaces:cached
66
depends_on:
@@ -14,7 +14,7 @@ services:
1414
network_mode: service:mongodb
1515

1616
mongodb:
17-
image: mongodb/mongodb-atlas-local:latest
17+
image: mongodb/mongodb-atlas-local:8.2.0
1818
restart: unless-stopped
1919
volumes:
2020
- mongodb_data:/data/db

.vscode/settings.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"mdb.presetConnections": [
3-
{
4-
"name": "mongodb:27017",
5-
"connectionString": "mongodb://admin:mongodb@localhost:27017"
6-
}
7-
]
2+
"mdb.presetConnections": [
3+
{
4+
"name": "Local MongoDB Atlas",
5+
"connectionString": "mongodb://admin:mongodb@localhost:27017"
6+
}
7+
],
8+
"mdb.showOverviewPageAfterInstall": false
89
}

0 commit comments

Comments
 (0)