2023-08-25 05:41:50 +08:00
|
|
|
{
|
|
|
|
"name": "PHP",
|
|
|
|
"image": "mcr.microsoft.com/devcontainers/php",
|
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
"github.codespaces",
|
|
|
|
// PHP from https://github.com/devcontainers/templates/tree/main/src/php
|
|
|
|
"xdebug.php-debug",
|
|
|
|
"bmewburn.vscode-intelephense-client",
|
|
|
|
"xdebug.php-pack",
|
|
|
|
// PHP
|
|
|
|
"DEVSENSE.phptools-vscode",
|
|
|
|
"DEVSENSE.composer-php-vscode",
|
|
|
|
// linting
|
|
|
|
"EditorConfig.EditorConfig",
|
|
|
|
"dbaeumer.vscode-eslint",
|
|
|
|
"raymondcamden.CSSLint",
|
|
|
|
// testing
|
|
|
|
"maty.vscode-mocha-sidebar"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"codespaces": {
|
2023-08-25 06:08:45 +08:00
|
|
|
"openFiles": [
|
|
|
|
"README.md",
|
|
|
|
"doc/README.md"
|
|
|
|
],
|
2023-08-25 05:41:50 +08:00
|
|
|
"repositories": {
|
|
|
|
"PrivateBin/*": {
|
|
|
|
"permissions": {
|
|
|
|
"pull_requests": "write"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"features": {
|
|
|
|
"ghcr.io/devcontainers-contrib/features/mocha:2": {}
|
|
|
|
},
|
|
|
|
"forwardPorts": [
|
|
|
|
8080
|
|
|
|
],
|
2023-12-08 23:34:00 +08:00
|
|
|
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
|
2023-08-25 05:41:50 +08:00
|
|
|
// alternatiuve: apache2ctl start (but requires root)
|
|
|
|
"postAttachCommand": "php -S 0.0.0.0:8080"
|
|
|
|
}
|