Skip to content

docs: add devcontainer for examples - #386

Merged
HarshaNalluru merged 2 commits into
usemoss:mainfrom
hasnainkhatri87:docs/378-devcontainer
Jul 15, 2026
Merged

docs: add devcontainer for examples#386
HarshaNalluru merged 2 commits into
usemoss:mainfrom
hasnainkhatri87:docs/378-devcontainer

Conversation

@hasnainkhatri87

Copy link
Copy Markdown
Contributor

Summary

Add a Dev Container configuration for Moss contributors.

Changes

  • Provide Python 3.12, Node.js 22, and Go 1.23 in Codespaces/dev containers.
  • Install the root, Python example, JavaScript example, and Go example dependencies after container creation.
  • Forward Moss credentials from the local environment without committing secrets.
  • Include common VS Code language extensions and development ports.

Testing

  • Parsed and structurally validated .devcontainer/devcontainer.json locally.
  • git diff --check passed.
  • npm run lint was attempted but is blocked on Windows by the existing ESLINT_USE_FLAT_CONFIG=true eslint . script syntax before ESLint starts.
  • Full container startup could not be run because Docker is not installed in the development environment.

Closes #378

@CLAassistant

CLAassistant commented Jul 13, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-level Dev Container configuration to make it easier for contributors to run Moss examples in Codespaces / VS Code Dev Containers with a preinstalled toolchain.

Changes:

  • Introduces .devcontainer/devcontainer.json using a base Ubuntu image with Python 3.12, Node.js 22, and Go.
  • Runs a postCreateCommand to install Python, Node, and Go example dependencies.
  • Configures forwarded ports and editor extensions for common workflows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .devcontainer/devcontainer.json
Comment thread .devcontainer/devcontainer.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@HarshaNalluru
HarshaNalluru merged commit 9c0cf63 into usemoss:main Jul 15, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Good first issue: Dev Container / Codespaces config

4 participants