devcontainer.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. "maty.vscode-mocha-sidebar"
  21. ]
  22. },
  23. "codespaces": {
  24. "openFiles": [
  25. "README.md",
  26. "doc/README.md"
  27. ],
  28. "repositories": {
  29. "PrivateBin/*": {
  30. "permissions": {
  31. "pull_requests": "write"
  32. }
  33. }
  34. }
  35. }
  36. },
  37. "features": {
  38. "ghcr.io/devcontainers-contrib/features/mocha:2": {}
  39. },
  40. "forwardPorts": [
  41. 8080
  42. ],
  43. "postCreateCommand": ".devcontainer/postCreateCommand.sh",
  44. // alternatiuve: apache2ctl start (but requires root)
  45. "postAttachCommand": "php -S 0.0.0.0:8080"
  46. }