erkobridee / devcontainer-hello

Learning about Development Containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devcontainer-hello

Learning about Development Containers

This requires to have the Docker on your machine.

Learning

Advanced container configuration

Using Docker Compose

Tips

MacOS - passing the ssh credentions to inside of the devcontainer

If you get and issue while trying to commit your changes from inside of the devcontainer, the solution that I took on my case

  1. Make sure to have your ssh key for the git host mapped like the following example
# ~/.ssh/config

Host *
  ForwardAgent yes

Host github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/{private_ssh_key}
  AddKeysToAgent yes
  1. On your devconfig.json file, add the following mount configuration
...

  "mounts": [
    "type=bind,source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,readonly"
  ]

...

Projects that uses Development Containers

Tools

CLI

  • [GitHub] devcontainers/cli - A reference implementation for the specification that can create and configure a dev container from a devcontainer.json.

DevPod

Visual Studio Code Extensions

IntelliJ IDEA

CodeSandbox

About

Learning about Development Containers