mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
8a01760a0f
**Sync the config in `devcontainer.json` and `docker-compose.yml`** Issue: when opening the current `master` branch in a dev container in VS Code, I get the following message as VS Code cannot find the mounted source folder: ![image](https://github.com/langchain-ai/langchain/assets/1824461/41cf20c0-d1e0-4648-9578-edf80b99c2db) Opening in a GitHub Codespace works (it seems to ignore the mounts in the `docker-compose.yml`. This PR updates the mount in `docker-compose.yml` and the config in `devcontainer.json` so that the two align. I have tested these changes in GitHub Codespaces and a VS Code dev container and both loaded successfully. Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
37 lines
1.3 KiB
JSON
37 lines
1.3 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
|
|
{
|
|
// Name for the dev container
|
|
"name": "langchain",
|
|
|
|
// Point to a Docker Compose file
|
|
"dockerComposeFile": "./docker-compose.yaml",
|
|
|
|
// Required when using Docker Compose. The name of the service to connect to once running
|
|
"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": "/workspaces/langchain",
|
|
|
|
// Prevent the container from shutting down
|
|
"overrideCommand": true
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features
|
|
// "features": {
|
|
// "ghcr.io/devcontainers-contrib/features/poetry:2": {}
|
|
// }
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
|
|
// Uncomment the next line to run commands after the container is created.
|
|
// "postCreateCommand": "cat /etc/os-release",
|
|
|
|
// Configure tool-specific properties.
|
|
// "customizations": {},
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|