Add .devcontainer config to support GitHub Codespaces and VS Code Dev Containers
Problem
There is currently no .devcontainer/ configuration in the repository. New contributors need to manually install Docker, Docker Compose, Node, and configure environment variables before they can run anything — a process that is underdocumented and error-prone across different host OS setups. This friction slows down first contributions significantly.
Proposed change
Add a .devcontainer/devcontainer.json (and optionally a companion docker-compose.devcontainer.yml) that bootstraps a fully working dev environment with one click in GitHub Codespaces or VS Code. The config should: — pre-install Docker-in-Docker, Node, and Python dependencies — set the CELLO_STORAGE_PATH environment variable automatically — run make local as a post-create command so the stack is ready on first open — expose ports 8080 and 8081 for the API engine and dashboard
Why this matters
GitHub Codespaces lets contributors open a browser tab and start coding with zero local setup. For an open-source project looking to grow its contributor base, this is one of the highest-leverage single-file additions possible. It also makes CI reproducibility easier since the dev environment is version-controlled.
Hi maintainers, I’d like to work on this issue.
I’m new to Hyperledger Cello, but I’m familiar with Python, JavaScript, Docker-based development, and VS Code. I’d like to start by adding a minimal .devcontainer/devcontainer.json that helps new contributors run the project in GitHub Codespaces / VS Code Dev Containers.
My initial plan is:
- Add a basic devcontainer config with Python, Node, Docker-in-Docker support.
- Set
CELLO_STORAGE_PATHautomatically. - Expose ports 8080 and 8081.
- Test whether
make localcan run successfully in the container. - Document any limitations if full startup requires host Docker permissions.
Please let me know if this approach is acceptable before I start.
Hi! I'd like to work on this issue as part of LFX Mentorship.
I believe improving the developer onboarding experience is one of the highest-impact ways to increase contributions, and a standardized Dev Container would make the setup process much more consistent across different operating systems.
My implementation plan is to:
- Add a
.devcontainer/devcontainer.jsonconfigured for both GitHub Codespaces and VS Code. - Include the required development dependencies (Docker-in-Docker, Python, Node.js, and Docker Compose support).
- Configure
CELLO_STORAGE_PATHautomatically within the development environment. - Use
postCreateCommandto runmake localso contributors have a ready-to-use environment immediately after opening the project. - Expose ports
8080and8081for the API Engine and Dashboard. - Validate the setup in a fresh Codespace to ensure a new contributor can clone the repository and start developing without additional manual configuration.
If appropriate, I'd also be happy to update the documentation with a short "Getting Started with Dev Containers/Codespaces" section so contributors know how to use the new setup.
Please let me know if there are any preferences regarding the base devcontainer image or development workflow that I should follow.
@adarshjnv9100 feel free to assign yourself and go ahead!