devcontainer.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "image": "ghcr.io/imgproxy/imgproxy-base:v4-dev",
  3. "name": "imgproxy OSS",
  4. "forwardPorts": [
  5. 8081
  6. ],
  7. "containerEnv": {
  8. "IMGPROXY_LOCAL_FILESYSTEM_ROOT": "/images",
  9. "IMGPROXY_ENABLE_VIDEO_THUMBNAILS": "true",
  10. "IMGPROXY_MAX_ANIMATION_FRAMES": "999",
  11. "IMGPROXY_VIPS_LEAK_CHECK": "true",
  12. "IMGPROXY_LOG_MEM_STATS": "true",
  13. "IMGPROXY_DEVELOPMENT_ERRORS_MODE": "true"
  14. },
  15. "mounts": [
  16. {
  17. "source": "${localWorkspaceFolder}/testdata/test-images",
  18. "target": "/images",
  19. "type": "bind"
  20. },
  21. {
  22. "source": "${localWorkspaceFolder}/.tmp/_dev-root/.cache",
  23. "target": "/root/.cache",
  24. "type": "bind"
  25. },
  26. {
  27. "source": "${localWorkspaceFolder}/.tmp/_dev-root/go/pkg/mod",
  28. "target": "/root/go/pkg/mod",
  29. "type": "bind"
  30. },
  31. {
  32. "source": "${localWorkspaceFolder}/.tmp/_dev-root/.bash_history",
  33. "target": "/root/.bash_history",
  34. "type": "bind"
  35. }
  36. ],
  37. "customizations": {
  38. "vscode": {
  39. "extensions": [
  40. "golang.go",
  41. "ms-vscode.cpptools"
  42. ]
  43. }
  44. },
  45. "postCreateCommand": "lefthook install",
  46. "initializeCommand": "mkdir -p ${localWorkspaceFolder}/.tmp/_dev-root/.cache ${localWorkspaceFolder}/.tmp/_dev-root/go/pkg/mod && touch ${localWorkspaceFolder}/.tmp/_dev-root/.bash_history",
  47. }