|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.159.0/containers/php |
| 3 | +{ |
| 4 | + "name": "PHP", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + "args": { |
| 8 | + // Update VARIANT to pick a PHP version: 8, 8.0, 7, 7.4, 7.3 |
| 9 | + "VARIANT": "7.3", |
| 10 | + "INSTALL_NODE": "false", |
| 11 | + "NODE_VERSION": "lts/*" |
| 12 | + } |
| 13 | + }, |
| 14 | + |
| 15 | + // Set *default* container specific settings.json values on container create. |
| 16 | + "settings": { |
| 17 | + "terminal.integrated.shell.linux": "/bin/bash", |
| 18 | + "php.validate.executablePath": "/usr/local/bin/php" |
| 19 | + }, |
| 20 | + |
| 21 | + // Add the IDs of extensions you want installed when the container is created. |
| 22 | + "extensions": [ |
| 23 | + "felixfbecker.php-debug", |
| 24 | + "bmewburn.vscode-intelephense-client", |
| 25 | + "editorconfig.editorconfig" |
| 26 | + ], |
| 27 | + |
| 28 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 29 | + // "forwardPorts": [8080], |
| 30 | + |
| 31 | + // Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference. |
| 32 | + // "portsAttributes": { |
| 33 | + // "8000": { |
| 34 | + // "label": "Hello Remote World", |
| 35 | + // "onAutoForward": "notify" |
| 36 | + // } |
| 37 | + // }, |
| 38 | + |
| 39 | + // Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'. |
| 40 | + // "otherPortsAttributes": { |
| 41 | + // "onAutoForward": "silent" |
| 42 | + // }, |
| 43 | + |
| 44 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 45 | + // "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html" |
| 46 | + |
| 47 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 48 | + "remoteUser": "vscode" |
| 49 | +} |
0 commit comments