Skip to content

brpaz/devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devcontainer

My personal devcontainer.

Features

Getting Started

Usage

Create a .devcontainer/devcontainer.json file in your project with the following content:

{
	"image": "ghcr.io/brpaz/devcontainer:latest",
	"runArgs": [ // Mount the Docker socket to allow using Docker CLI inside the container
    "-v",
    "/var/run/docker.sock:/var/run/docker.sock",
  ],
  "remoteUser": "dev",
  "customizations": {
    "vscode": {
      "extensions": ["mkhl.direnv", "arrterian.nix-env-selector"],
      "settings": {
        "terminal.integrated.defaultProfile.linux": "zsh",
        "terminal.integrated.profiles.linux": {
          "zsh": {
            "path": "/usr/bin/zsh",
          },
        },
      },
    },
  },
}

Development

Pre requisites

Building a devcontainer

./scripts/build.sh

Run the container from docker

docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock <built_image_id> zsh

LICENSE

This project is licensed under the MIT License - see the LICENSE file for details.

About

My Personal Devcontainer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors