devcontainer.json 1.4 KB

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