// 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.231.6/containers/go
{
	"name": "Go",
	"build": {
		"dockerfile": "Dockerfile",
		"args": {
			// Update the VARIANT arg to pick a version of Go: 1, 1.18, 1.17
			// Append -bullseye or -buster to pin to an OS version.
			// Use -bullseye variants on local arm64/Apple Silicon.
			"VARIANT": "dev-1.26-bookworm",
			// Options
			"NODE_VERSION": "none"
		}
	},
	// Note: Avoid elevated container privileges by default, especially in CI.
	// If you *must* enable debugging that requires ptrace locally, you can
	// temporarily add:
	// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],

	// Set *default* container specific settings.json values on container create.
	"settings": {
		"go.toolsManagement.checkForUpdates": "local",
		"go.useLanguageServer": true,
		"go.gopath": "/go"
	},

	// Add the IDs of extensions you want installed when the container is created.
	"extensions": [
		"golang.Go"
	],
	"containerEnv": {
		// Access key of a token
		"SCW_ACCESS_KEY": "${localEnv:SCW_ACCESS_KEY}",
		// Secret key of a token
		"SCW_SECRET_KEY": "${localEnv:SCW_SECRET_KEY}",
		// Url of the API
		//"SCW_API_URL": "${localEnv:SCW_API_URL}",
		// Your default availability zone (fr-par-1, nl-ams-1, ...)
		//"SCW_DEFAULT_ZONE": "${localEnv:SCW_DEFAULT_ZONE}",
		// Your default region (fr-par, nl-ams, ...)
		//"SCW_DEFAULT_REGION": "${localEnv:SCW_DEFAULT_REGION}",
		// Your default project ID
		"SCW_DEFAULT_PROJECT_ID": "${localEnv:SCW_DEFAULT_PROJECT_ID}",
		// Your default organization ID
		"SCW_DEFAULT_ORGANIZATION_ID": "${localEnv:SCW_DEFAULT_ORGANIZATION_ID}"
	},

	// 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": "go version",

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