Skip to content

Commit caf1919

Browse files
authored
fix: devcontainer to use volume to store the workspace (#32266)
should resolve the file sharing issue for users on macOS.
1 parent 904066f commit caf1919

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"service": "langchain",
1010
// The optional 'workspaceFolder' property is the path VS Code should open by default when
1111
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
12-
"workspaceFolder": "/workspace",
12+
"workspaceFolder": "/workspaces/langchain",
13+
"mounts": [
14+
"source=langchain-workspaces,target=/workspaces/langchain,type=volume"
15+
],
1316
// Prevent the container from shutting down
1417
"overrideCommand": true,
1518
// Features to add to the dev container. More info: https://containers.dev/features

.devcontainer/docker-compose.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ services:
44
build:
55
dockerfile: libs/langchain/dev.Dockerfile
66
context: ..
7-
volumes:
8-
- .:/workspace
7+
98
networks:
109
- langchain-network
1110

0 commit comments

Comments
 (0)