Skip to content

jcesarprog/devcontainer-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 

Repository files navigation

DevContainer Templates Collection

This repository contains various devcontainer configurations, each in its own branch. Each template is ready to use and includes all necessary configuration files.

πŸ“¦ Available Templates

πŸ”Ή Next15 Deno

# Clone this template
git clone -b next15-deno --single-branch https://github.com/jcesarprog/devcontainer-templates.git your-project-name

# Or copy to existing project
git clone -b next15-deno --depth=1 https://github.com/jcesarprog/devcontainer-templates.git temp-devcontainer
cp -r temp-devcontainer/.devcontainer .
cp -r temp-devcontainer/scripts .
rm -rf temp-devcontainer

πŸ”Ή Nextjs15 Bun

# Clone this template
git clone -b nextjs15-bun --single-branch https://github.com/jcesarprog/devcontainer-templates.git your-project-name

# Or copy to existing project
git clone -b nextjs15-bun --depth=1 https://github.com/jcesarprog/devcontainer-templates.git temp-devcontainer
cp -r temp-devcontainer/.devcontainer .
cp -r temp-devcontainer/scripts .
rm -rf temp-devcontainer

πŸ”Ή Nextjs15 Pnpm

# Clone this template
git clone -b nextjs15-pnpm --single-branch https://github.com/jcesarprog/devcontainer-templates.git your-project-name

# Or copy to existing project
git clone -b nextjs15-pnpm --depth=1 https://github.com/jcesarprog/devcontainer-templates.git temp-devcontainer
cp -r temp-devcontainer/.devcontainer .
cp -r temp-devcontainer/scripts .
rm -rf temp-devcontainer

πŸš€ How to Use a Template

Method 1: Clone Template Branch Directly (Recommended for new projects)

# Replace <template-branch> with your chosen template
git clone -b <template-branch> --single-branch https://github.com/jcesarprog/devcontainer-templates.git my-project
cd my-project

# Optional: Remove git history to start fresh
rm -rf .git
git init

# Open in VS Code
code .

Method 2: Add to Existing Project

# From your project root
git clone -b <template-branch> --depth=1 https://github.com/jcesarprog/devcontainer-templates.git temp-devcontainer
cp -r temp-devcontainer/.devcontainer .
cp -r temp-devcontainer/scripts .
rm -rf temp-devcontainer

# Open in VS Code - it will detect the devcontainer
code .

Method 3: Use GitHub's Template Feature

  1. Go to the branch page: https://github.com/jcesarprog/devcontainer-templates.git/tree/<template-branch>
  2. Click "Use this template" button
  3. Create your new repository
  4. Clone and open in VS Code

πŸ“‹ Requirements

πŸ”„ Contributing Templates

Each template is maintained in its own branch. To contribute or update a template:

  1. Clone the specific template branch
  2. Make your changes
  3. Push back to the same branch
  4. The main branch index will update automatically

πŸ“ Template Structure

Each template branch contains:

  • .devcontainer/ - DevContainer configuration
    • devcontainer.json - Container settings
    • Dockerfile - Image definition
    • .dockerignore - Build exclusions
  • scripts/devcontainer/ - Setup scripts
    • postCreateContainer.sh - Post-creation tasks
    • sync-devcontainer-repo.sh - Sync utility

πŸ“… Last Updated

2025-10-15 14:59:43

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published