cello icon indicating copy to clipboard operation
cello copied to clipboard

Add .devcontainer config to support GitHub Codespaces and VS Code Dev Containers

Open snehanair-486 opened this issue 6 months ago • 3 comments

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.

snehanair-486 avatar May 24 '26 17:05 snehanair-486

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:

  1. Add a basic devcontainer config with Python, Node, Docker-in-Docker support.
  2. Set CELLO_STORAGE_PATH automatically.
  3. Expose ports 8080 and 8081.
  4. Test whether make local can run successfully in the container.
  5. Document any limitations if full startup requires host Docker permissions.

Please let me know if this approach is acceptable before I start.

DanielNg0729 avatar May 25 '26 02:05 DanielNg0729

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.json configured 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_PATH automatically within the development environment.
  • Use postCreateCommand to run make local so contributors have a ready-to-use environment immediately after opening the project.
  • Expose ports 8080 and 8081 for 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 avatar Jul 13 '26 08:07 adarshjnv9100

@adarshjnv9100 feel free to assign yourself and go ahead!

yeasy avatar Jul 28 '26 21:07 yeasy