github.com/alloyzeus/go-azfl@v0.0.0-20231220071816-9740126a2d07/.devcontainer/devcontainer.json (about)

     1  // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
     2  // https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/go
     3  {
     4  	"name": "Go",
     5  	"build": {
     6  		"dockerfile": "Dockerfile",
     7  		"args": {
     8  			// Update the VARIANT arg to pick a version of Go: 1, 1.18, 1.17
     9  			// Append -bullseye or -buster to pin to an OS version.
    10  			// Use -bullseye variants on local arm64/Apple Silicon.
    11  			"VARIANT": "1-bullseye",
    12  			// Options
    13  			"NODE_VERSION": "none"
    14  		}
    15  	},
    16  	"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
    17  
    18  	// Set *default* container specific settings.json values on container create.
    19  	"settings": {
    20  		"go.toolsManagement.checkForUpdates": "local",
    21  		"go.useLanguageServer": true,
    22  		"go.gopath": "/go"
    23  	},
    24  
    25  	// Add the IDs of extensions you want installed when the container is created.
    26  	"extensions": [
    27  		"golang.Go"
    28  	],
    29  
    30  	// Use 'forwardPorts' to make a list of ports inside the container available locally.
    31  	// "forwardPorts": [],
    32  
    33  	// Use 'postCreateCommand' to run commands after the container is created.
    34  	// "postCreateCommand": "go version",
    35  
    36  	// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
    37  	"remoteUser": "vscode",
    38  
    39  	"mounts": [
    40  		"readonly,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
    41  	]
    42  }