// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/docker-in-docker
{
	"name": "Ubuntu 20.04 - Docker in Docker",
	"dockerFile": "Dockerfile",
	"runArgs": ["--init", "--privileged"],
	"overrideCommand": false,

	// Use this environment variable if you need to bind mount your local source code into a new container.
	// Set *default* container specific settings.json values on container create.
	"settings": {
		// "terminal.integrated.shell.linux": "/bin/bash",
		"terminal.integrated.rendererType": "auto"
	},

	// Add the IDs of extensions you want installed when the container is created.
	"extensions": [
		"bierner.markdown-mermaid",
		"ms-azuretools.vscode-docker",
		"mhutchie.git-graph",
		"alefragnani.bookmarks",
		"yzhang.markdown-all-in-one",
		"trabpukcip.vscode-npm-scripts",
		"jebbs.plantuml",
		"ms-vscode-remote.vscode-remote-extensionpack",
		"juanblanco.solidity",
		"dbaeumer.vscode-eslint",
		"42crunch.vscode-openapi"
	],

	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [],

	// Use 'postCreateCommand' to run commands after the container is created.
	"postCreateCommand": "bash -i -c '~/bin/post-create-commands.sh'",

	// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
	"remoteUser": "vscode"
}
