Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Dev Container Features

This repository contains a small collection of personal dev container features that I use to streamline my development environment.

Current Features

setup-claude

The setup-claude feature prepares the container so Claude Code can use a persistent configuration directory from the host machine. It links the host's Claude configuration folder into the container so your settings and data are preserved across sessions.

Example usage

{
  "name": "My Dev Container",
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
  "features": {
    "ghcr.io/jakesactualface/devcontainer-features/setup-claude:latest": {
      "mountClaudeDirectory": true
    }
  }
}

Options

Option Type Default Description
mountClaudeDirectory boolean false Enables or disables the bind mount of the host Claude configuration directory into the container.

Repository Structure

src/
  setup-claude/
    devcontainer-feature.json
    install.sh
    README.md

Each feature lives in its own subdirectory under src/ and includes:

  • a devcontainer-feature.json file for the feature definition and options
  • an install.sh entrypoint that runs during container build time
  • feature-specific documentation in its own README

Development

To work on this repository locally:

  1. Edit the feature definition in src/<feature>/devcontainer-feature.json.
  2. Update the install logic in src/<feature>/install.sh.
  3. Validate the script syntax with:
bash -n src/setup-claude/install.sh
  1. Run the feature tests with:
devcontainer features test --features setup-claude --skip-scenarios

Future Plans

This repository is intentionally small right now. I will add more reusable dev container features here as my workflow evolves, while keeping each feature focused on a single purpose.

About

Feature definitions for my containerized development environments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages