|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/php
|
3 | 3 | {
|
4 |
| - "name": "PHP", |
5 |
| - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 |
| - "image": "mcr.microsoft.com/devcontainers/php:1-8.2-bullseye", |
| 4 | + "name": "PHP", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "image": "mcr.microsoft.com/devcontainers/php:1-8.2-bullseye", |
7 | 7 |
|
8 |
| - // Features to add to the dev container. More info: https://containers.dev/features. |
9 |
| - "features": { |
10 |
| - "ghcr.io/devcontainers/features/github-cli:1": {}, |
11 |
| - "ghcr.io/devcontainers/features/node:1": {} |
12 |
| - }, |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + "features": { |
| 10 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 11 | + "ghcr.io/devcontainers/features/node:1": {} |
| 12 | + }, |
13 | 13 |
|
14 |
| - // Configure tool-specific properties. |
15 |
| - "customizations": { |
16 |
| - // Configure properties specific to VS Code. |
17 |
| - "vscode": { |
18 |
| - "extensions": [ |
19 |
| - "ikappas.composer", |
20 |
| - "editorconfig.editorconfig", |
21 |
| - "junstyle.php-cs-fixer", |
22 |
| - "ms-vscode.makefile-tools", |
23 |
| - "recca0120.vscode-phpunit" |
24 |
| - ] |
25 |
| - } |
26 |
| - }, |
| 14 | + // Configure tool-specific properties. |
| 15 | + "customizations": { |
| 16 | + // Configure properties specific to VS Code. |
| 17 | + "vscode": { |
| 18 | + "extensions": [ |
| 19 | + "ikappas.composer", |
| 20 | + "editorconfig.editorconfig", |
| 21 | + "junstyle.php-cs-fixer", |
| 22 | + "ms-vscode.makefile-tools", |
| 23 | + "recca0120.vscode-phpunit" |
| 24 | + ] |
| 25 | + } |
| 26 | + }, |
27 | 27 |
|
28 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
29 |
| - "forwardPorts": [ |
30 |
| - 8080 |
31 |
| - ], |
| 28 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 29 | + "forwardPorts": [ |
| 30 | + 8080 |
| 31 | + ], |
32 | 32 |
|
33 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
34 |
| - "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html; test -f composer.json && composer install" |
| 33 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 34 | + "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html; test -f composer.json && composer install" |
35 | 35 |
|
36 |
| - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
37 |
| - // "remoteUser": "root" |
| 36 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 37 | + // "remoteUser": "root" |
38 | 38 | }
|
0 commit comments