This script serves as a helper to generate a devcontainer configuration for development projects usable in VSCode. Useful for development and especially testing of git repositories of any type.
Especially useful if you are running in rootless docker (nobody likes giving out root privs like bread).
Creates devcontainer config for Python/Go/Node languages to easily startup a devcontainer in vscode.
- Install the Dev Container and Remote Development plugins
- Go to Settings, search "docker" and update the following fields:
- Docker Path
- Docker Compose Path --> likely similar to
/home/USER/bin/docker
- Docker Socket Path --> Likely similar to
/var/run/1000/docker.sock
cd appFolder && create_dev_container.sh
.devcontainer/devcontainer.json
gets created- CTRL+SHIFT+p "then Rebuild and Reopen in Container"
- Done