devcontainer.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "name": "PHP",
  3. "image": "mcr.microsoft.com/devcontainers/php",
  4. "customizations": {
  5. "vscode": {
  6. "extensions": [
  7. "github.codespaces",
  8. "xdebug.php-debug",
  9. "bmewburn.vscode-intelephense-client",
  10. "xdebug.php-pack",
  11. "DEVSENSE.phptools-vscode",
  12. "DEVSENSE.composer-php-vscode",
  13. "EditorConfig.EditorConfig",
  14. "dbaeumer.vscode-eslint",
  15. "raymondcamden.CSSLint",
  16. "recca0120.vscode-phpunit",
  17. "hbenl.vscode-mocha-test-adapter"
  18. ]
  19. },
  20. "codespaces": {
  21. "openFiles": [
  22. "README.md",
  23. "doc/README.md"
  24. ],
  25. "repositories": {
  26. "PrivateBin/*": {
  27. "permissions": {
  28. "pull_requests": "write"
  29. }
  30. }
  31. }
  32. }
  33. },
  34. "features": {
  35. "ghcr.io/devcontainers-contrib/features/mocha:2": {}
  36. },
  37. "forwardPorts": [
  38. 8080
  39. ],
  40. "postCreateCommand": ".devcontainer/postCreateCommand.sh",
  41. // alternatiuve: apache2ctl start (but requires root)
  42. "postAttachCommand": "php -S 0.0.0.0:8080"
  43. }