Add devcontainer configuration for Grant Development
Added the .devcontainer folder to provide a consistent, isolated development and testing environment. This helps developers and testers quickly set up their workspace with all required tools and dependencies.
Thanks @RohanRusta21 - can you link me any docs or just generate information about this pattern? We do a bunch of bootstrapping and work for development already in our tool repos at anchore and I'd like to learn more about this
@spiffcs Sure! Here are some key resources about devcontainers:
Documentation:
- VS Code Dev Containers: https://code.visualstudio.com/docs/remote/containers
- GitHub Codespaces: https://docs.github.com/en/codespaces
Benefits this brings:
- Consistent development environment across all team members
- Quick onboarding for new contributors
- Isolated dependencies that don't conflict with local system
- Reproducible builds and testing
How it complements existing bootstrap scripts:
- Provides containerized isolation while still leveraging your existing tooling
- Can incorporate your current bootstrap scripts in the Dockerfile or post-create commands
- Adds IDE configuration and debugging support
The devcontainer configuration I added uses your existing tooling while providing the containerization benefits.