|
| 1 | +// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile |
| 3 | +{ |
| 4 | + "name": "Existing Dockerfile", |
| 5 | + |
| 6 | + // Sets the run context to one level up instead of the .devcontainer folder. |
| 7 | + "context": "..", |
| 8 | + |
| 9 | + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
| 10 | + "dockerFile": "../Dockerfile", |
| 11 | + |
| 12 | + // The optional 'runArgs' property can be used to specify additional runtime arguments. |
| 13 | + "runArgs": [ |
| 14 | + // Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker for details. |
| 15 | + // "-v","/var/run/docker.sock:/var/run/docker.sock", |
| 16 | + |
| 17 | + // Uncomment the next line if you will be using a ptrace-based debugger like C++, Go, and Rust. |
| 18 | + // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" |
| 19 | + |
| 20 | + // You may want to add a non-root user to your Dockerfile. On Linux, this will prevent |
| 21 | + // new files getting created as root. See https://aka.ms/vscode-remote/containers/non-root-user |
| 22 | + // for the needed Dockerfile updates and then uncomment the next line. |
| 23 | + // "-u", "vscode" |
| 24 | + ], |
| 25 | + |
| 26 | + // Use 'settings' to set *default* container specific settings.json values on container create. |
| 27 | + // You can edit these settings after create using File > Preferences > Settings > Remote. |
| 28 | + "settings": { |
| 29 | + // This will ignore your local shell user setting for Linux since shells like zsh are typically |
| 30 | + // not in base container images. You can also update this to an specific shell to ensure VS Code |
| 31 | + // uses the right one for terminals and tasks. For example, /bin/bash (or /bin/ash for Alpine). |
| 32 | + "terminal.integrated.shell.linux": null |
| 33 | + }, |
| 34 | + |
| 35 | + // Uncomment the next line if you want to publish any ports. |
| 36 | + // "appPort": [], |
| 37 | + |
| 38 | + // Uncomment the next line to run commands after the container is created - for example installing git. |
| 39 | + // "postCreateCommand": "apt-get update && apt-get install -y git", |
| 40 | + |
| 41 | + // Add the IDs of extensions you want installed when the container is created in the array below. |
| 42 | + "extensions": [] |
| 43 | +} |
0 commit comments