|
| 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/php |
| 3 | +{ |
| 4 | + "name": "PHP", |
| 5 | + "image": "mcr.microsoft.com/devcontainers/php:8.4-trixie", |
| 6 | + |
| 7 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 8 | + "features": { |
| 9 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 10 | + "ghcr.io/devcontainers/features/java:1": { |
| 11 | + "version": "lts", |
| 12 | + "installGradle": false, |
| 13 | + "installMaven": false |
| 14 | + } |
| 15 | + }, |
| 16 | + |
| 17 | + // Configure tool-specific properties. |
| 18 | + "customizations": { |
| 19 | + // Configure properties specific to VS Code. |
| 20 | + "vscode": { |
| 21 | + "extensions": [ |
| 22 | + "editorconfig.editorconfig", |
| 23 | + "redhat.vscode-xml" |
| 24 | + ], |
| 25 | + // Workspace-level launch config |
| 26 | + "settings": { |
| 27 | + "launch": { |
| 28 | + "version": "0.2.0", |
| 29 | + "configurations": [ |
| 30 | + { |
| 31 | + "name": "Build XHTML & serve", |
| 32 | + "type": "node-terminal", |
| 33 | + "request": "launch", |
| 34 | + "command": ".devcontainer/build.sh xhtml" |
| 35 | + }, |
| 36 | + { |
| 37 | + "name": "Build PHP web & serve", |
| 38 | + "type": "node-terminal", |
| 39 | + "request": "launch", |
| 40 | + "command": ".devcontainer/build.sh php" |
| 41 | + } |
| 42 | + ] |
| 43 | + } |
| 44 | + } |
| 45 | + } |
| 46 | + }, |
| 47 | + |
| 48 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 49 | + "forwardPorts": [ |
| 50 | + 8080 |
| 51 | + ], |
| 52 | + |
| 53 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 54 | + "postCreateCommand": "sudo .devcontainer/post-create.sh", |
| 55 | + |
| 56 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 57 | + // "remoteUser": "root" |
| 58 | +} |
0 commit comments