|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose |
| 3 | +{ |
| 4 | + "name": "Existing Docker Compose (Extend)", |
| 5 | + |
| 6 | + // Update the 'dockerComposeFile' list if you have more compose files or use different names. |
| 7 | + // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. |
| 8 | + "dockerComposeFile": [ |
| 9 | + "../tests/docker-compose.yml", |
| 10 | + "docker-compose.yml", |
| 11 | + ], |
| 12 | + |
| 13 | + // The 'service' property is the name of the service for the container that VS Code should |
| 14 | + // use. Update this value and .devcontainer/docker-compose.yml to the real service name. |
| 15 | + "service": "test", |
| 16 | + |
| 17 | + // The optional 'workspaceFolder' property is the path VS Code should open by default when |
| 18 | + // connected. This is typically a file mount in .devcontainer/docker-compose.yml |
| 19 | + "workspaceFolder": "/mnt/oca-ci", |
| 20 | + |
| 21 | + "remoteEnv": { |
| 22 | + "PATH": "/mnt/oca-ci/bin:${containerEnv:PATH}", |
| 23 | + }, |
| 24 | + |
| 25 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 26 | + // "features": {}, |
| 27 | + |
| 28 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 29 | + // "forwardPorts": [], |
| 30 | + |
| 31 | + // Uncomment the next line if you want start specific services in your Docker Compose config. |
| 32 | + // "runServices": [], |
| 33 | + |
| 34 | + // Uncomment the next line if you want to keep your containers running after VS Code shuts down. |
| 35 | + // "shutdownAction": "none", |
| 36 | + |
| 37 | + // Uncomment the next line to run commands after the container is created. |
| 38 | + // "postCreateCommand": "cat /etc/os-release", |
| 39 | + |
| 40 | + // Configure tool-specific properties. |
| 41 | + // "customizations": {}, |
| 42 | + |
| 43 | + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
| 44 | + // "remoteUser": "devcontainer" |
| 45 | +} |
0 commit comments