2020-08-11 13:21:43 -07:00
|
|
|
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
|
|
|
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.134.0/containers/php
|
2019-05-01 07:53:21 -07:00
|
|
|
{
|
2020-08-11 13:21:43 -07:00
|
|
|
"name": "PHP",
|
2020-07-28 00:24:35 +00:00
|
|
|
"build": {
|
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
|
"args": {
|
2020-08-11 13:21:43 -07:00
|
|
|
// Update VARIANT to pick a PHP version: 7, 7.4, 7.3
|
2020-07-28 00:24:35 +00:00
|
|
|
"VARIANT": "7",
|
2020-08-11 13:21:43 -07:00
|
|
|
"INSTALL_NODE": "false",
|
2020-07-28 00:24:35 +00:00
|
|
|
"NODE_VERSION": "lts/*"
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-12-11 15:47:41 +00:00
|
|
|
|
2020-07-28 00:24:35 +00:00
|
|
|
// Set *default* container specific settings.json values on container create.
|
2019-12-11 15:47:41 +00:00
|
|
|
"settings": {
|
|
|
|
|
"terminal.integrated.shell.linux": "/bin/bash"
|
|
|
|
|
},
|
2020-07-28 00:24:35 +00:00
|
|
|
|
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
2020-04-09 00:54:44 +00:00
|
|
|
"extensions": [
|
|
|
|
|
"felixfbecker.php-debug",
|
|
|
|
|
"felixfbecker.php-intellisense"
|
|
|
|
|
],
|
2020-07-28 00:24:35 +00:00
|
|
|
|
2020-04-09 00:54:44 +00:00
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
|
|
|
// "forwardPorts": [],
|
2019-12-11 15:47:41 +00:00
|
|
|
|
2020-04-09 00:54:44 +00:00
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2019-12-11 15:47:41 +00:00
|
|
|
// "postCreateCommand": "php -v",
|
|
|
|
|
|
2020-08-11 13:21:43 -07:00
|
|
|
// Comment out to connect as root instead.
|
2020-04-09 00:54:44 +00:00
|
|
|
"remoteUser": "vscode"
|
2019-12-11 15:47:41 +00:00
|
|
|
}
|