Skip to content

The agent engineering platform.

fix: devcontainer to use volume to store the workspace (#32266)

Mason Daughertycaf19192175e
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index bd6c055bb4..bc112467d1 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -9,7 +9,10 @@
"service": "langchain",
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
- "workspaceFolder": "/workspace",
+ "workspaceFolder": "/workspaces/langchain",
+ "mounts": [
+ "source=langchain-workspaces,target=/workspaces/langchain,type=volume"
+ ],
// Prevent the container from shutting down
"overrideCommand": true,
// Features to add to the dev container. More info: https://containers.dev/features
diff --git a/.devcontainer/docker-compose.yaml b/.devcontainer/docker-compose.yaml
index 06600241a3..979950a3b0 100644
--- a/.devcontainer/docker-compose.yaml
+++ b/.devcontainer/docker-compose.yaml
@@ -4,8 +4,7 @@ services:
build:
dockerfile: libs/langchain/dev.Dockerfile
context: ..
- volumes:
- - .:/workspace
+
networks:
- langchain-network