Update template, illustrate Features and image metadata (#50)
* Update template, illustrate Features and image metadata * Bump to 1.19 * Fix typo
This commit is contained in:
		@@ -1,35 +1,20 @@
 | 
			
		||||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
 | 
			
		||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/go
 | 
			
		||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
 | 
			
		||||
// README at: https://github.com/devcontainers/templates/tree/main/src/go
 | 
			
		||||
{
 | 
			
		||||
	"name": "Go",
 | 
			
		||||
	"build": {
 | 
			
		||||
		"dockerfile": "Dockerfile",
 | 
			
		||||
		"args": {
 | 
			
		||||
			// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
 | 
			
		||||
			// Append -bullseye or -buster to pin to an OS version.
 | 
			
		||||
			// Use -bullseye variants on local arm64/Apple Silicon.
 | 
			
		||||
			"VARIANT": "1.17-bullseye",
 | 
			
		||||
			// Options
 | 
			
		||||
			"NODE_VERSION": "lts/*"
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
 | 
			
		||||
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
 | 
			
		||||
	"image": "mcr.microsoft.com/devcontainers/go:0-1.19-bullseye",
 | 
			
		||||
 | 
			
		||||
	// Features to add to the dev container. More info: https://containers.dev/features.
 | 
			
		||||
	// "features": {},
 | 
			
		||||
 | 
			
		||||
	// Configure tool-specific properties.
 | 
			
		||||
	"customizations": {
 | 
			
		||||
		// Configure properties specific to VS Code.
 | 
			
		||||
		"vscode": {
 | 
			
		||||
			// Set *default* container specific settings.json values on container create.
 | 
			
		||||
			"settings": { 
 | 
			
		||||
				"go.toolsManagement.checkForUpdates": "local",
 | 
			
		||||
				"go.useLanguageServer": true,
 | 
			
		||||
				"go.gopath": "/go",
 | 
			
		||||
				"go.goroot": "/usr/local/go"
 | 
			
		||||
			},
 | 
			
		||||
			
 | 
			
		||||
			// Add the IDs of extensions you want installed when the container is created.
 | 
			
		||||
			"settings": {},
 | 
			
		||||
			"extensions": [
 | 
			
		||||
				"golang.Go"
 | 
			
		||||
				"streetsidesoftware.code-spell-checker"
 | 
			
		||||
			]
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
@@ -37,22 +22,18 @@
 | 
			
		||||
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
 | 
			
		||||
	// "forwardPorts": [9000],
 | 
			
		||||
 | 
			
		||||
	// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
 | 
			
		||||
	// Use 'portsAttributes' to set default properties for specific forwarded ports. 
 | 
			
		||||
	// More info: https://containers.dev/implementors/json_reference/#port-attributes
 | 
			
		||||
	"portsAttributes": {
 | 
			
		||||
		"9000": {
 | 
			
		||||
			"label": "Hello Remote World",
 | 
			
		||||
			"onAutoForward": "notify"
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
 | 
			
		||||
	// "otherPortsAttributes": {
 | 
			
		||||
	// 		"onAutoForward": "silent"
 | 
			
		||||
	// },
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Use 'postCreateCommand' to run commands after the container is created.
 | 
			
		||||
	// "postCreateCommand": "go version",
 | 
			
		||||
 | 
			
		||||
	// Uncomment to connect as a non-root user. More info: https://aka.ms/vscode-remote/containers/non-root.
 | 
			
		||||
	"remoteUser": "vscode"
 | 
			
		||||
	// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
 | 
			
		||||
	// "remoteUser": "root"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user