53 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
// 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.163.1/containers/go
 | 
						|
{
 | 
						|
	"name": "Go",
 | 
						|
	"build": {
 | 
						|
		"dockerfile": "Dockerfile",
 | 
						|
		"args": {
 | 
						|
			// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.15
 | 
						|
			"VARIANT": "1.16",
 | 
						|
			// Options
 | 
						|
			"INSTALL_NODE": "false",
 | 
						|
			"NODE_VERSION": "lts/*"
 | 
						|
		}
 | 
						|
	},
 | 
						|
	"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
 | 
						|
 | 
						|
	// Set *default* container specific settings.json values on container create.
 | 
						|
	"settings": { 
 | 
						|
		"terminal.integrated.shell.linux": "/bin/bash",
 | 
						|
		"go.toolsManagement.checkForUpdates": "local",
 | 
						|
		"go.gopath": "/go",
 | 
						|
		"go.useLanguageServer": true
 | 
						|
	},
 | 
						|
	
 | 
						|
	// Add the IDs of extensions you want installed when the container is created.
 | 
						|
	"extensions": [
 | 
						|
		"golang.Go"
 | 
						|
	],
 | 
						|
 | 
						|
	// 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.
 | 
						|
	// You can use a port number (i.e. 9000), range of numbers, or a regex to match the running process.
 | 
						|
	"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. See https://aka.ms/vscode-remote/containers/non-root.
 | 
						|
	"remoteUser": "vscode"
 | 
						|
}
 |