Skip to content

johanwestling/.devcontainer

Repository files navigation

Devcontainer

A template for getting started with devcontainers in new or existing repositories.

Table of contents


Create repository


Add to existing project

  1. Open terminal.

  2. Change to project directory:

    cd /path/to/project
  3. Add .devcontainer to project:

    curl -sS https://raw.githubusercontent.com/johanwestling/.devcontainer/refs/heads/main/devcontainerInstall.sh | bash
  4. Open vscode or other editor supporting devcontainers:

    code .
  5. When prompted click Reopen in container.


Update template

  1. Open terminal.

  2. Change to project directory:

    cd /path/to/project
  3. Update template:

    .devcontainer/devcontainerUpdate.sh

Remove template

  1. Open terminal.

  2. Change to project directory:

    cd /path/to/project
  3. Remove template:

    .devcontainer/devcontainerRemove.sh

Alias launch in devcontainer

If you want vscode launch your project directly in your newly created devcontainer, check my gist:

About

A template for getting started with devcontainers in new or existing repositories.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors