devcontainer

Set up a containerized TypeScript/Node.js development environment with Nx and Dagger.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill devcontainer-jacobley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devcontainer
Source: https://github.com/JacobLey/leyman/tree/main/.claude/skills/devcontainer
Command: npx skills add https://github.com/JacobLey/leyman --skill devcontainer-jacobley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The DevContainer provides a canonical development environment with runtimes and CLI tools, ensuring consistent setup across machines and CI, reducing onboarding friction and drift.

Core Features & Use Cases

  • Tooling included: Node.js, pnpm, Go, Dagger CLI, Docker, Brew, Nx, and Local Scripts available on PATH after container startup.
  • Version parity with CI: Keeps the local container in sync with the Dagger CI pipeline to prevent environment drift.
  • Use cases: Developers spinning up a ready-to-use workspace for coding, building, testing, and contributor onboarding.

Quick Start

Open the repository in VS Code DevContainer to automatically start the parity-enabled development environment.

Frequently Asked Questions about devcontainer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Node.js devcontainer to match my CI environment?

A devcontainer eliminates local setup drift by providing a canonical containerized environment with Node.js, pnpm, and Docker available on PATH, ensuring developers and CI pipelines use identical tool versions to prevent environment drift.

How do I run Dagger CLI inside a devcontainer for local testing?

Running Dagger CLI inside a devcontainer requires Docker and Go available on PATH. The containerized environment enables local execution of Dagger pipelines, achieving version parity with CI to test and build projects locally without drift.

Does this devcontainer setup support pnpm and Nx workflows?

Yes, the devcontainer supports pnpm and Nx workflows by making both tools available on PATH after container startup. This enables consistent monorepo task execution and package management within the containerized environment, mirroring CI behavior.

What tools are available on PATH in a devcontainer configured for Nx and Dagger?

In a devcontainer configured for Nx and Dagger, Node.js, pnpm, Go, Dagger CLI, Docker, Brew, and local scripts are available on PATH. This provides a complete workspace for building, testing, and running TypeScript and Go projects.

How do I prevent local setup drift when using Dagger for CI pipelines?

To prevent local setup drift with Dagger CI pipelines, use a devcontainer that pins tool versions via ARGs. Keeping the local container in sync with the Dagger CI pipeline ensures consistent runtimes across all machines and environments.

Can I use VS Code to automatically start a devcontainer with Dagger and Node.js?

Yes, you can use VS Code DevContainer to automatically start the parity-enabled development environment by opening the repository. This triggers container startup, making Node.js, Dagger CLI, and other tools available on PATH immediately.