code.cestus.io/tools/fabricator@v0.4.3/.devcontainer/devcontainer.json (about)

     1  {
     2  	"name": "Go",
     3  	"build": {
     4  		"dockerfile": "Dockerfile",
     5  		"args": {
     6  			// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.15
     7  			//"VARIANT": "1.16",
     8  			// Options
     9  			//"INSTALL_NODE": "false",
    10  			//"NODE_VERSION": "lts/*"
    11  		}
    12  	},
    13  	//"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
    14  
    15  	// Set *default* container specific settings.json values on container create.
    16  	"settings": {
    17  		"terminal.integrated.shell.linux": "/bin/bash",
    18  		"go.toolsManagement.checkForUpdates": "off",
    19  		"go.useLanguageServer": true,
    20  		"go.gopath": "/go",
    21  		"go.goroot": "/usr/local/go"
    22  	},
    23  	"mounts":[
    24  		"source=${localEnv:HOME}${localEnv:USERPROFILE}/.netrc,target=/home/vscode/.netrc,type=bind,consistency=cached",
    25  		"source=${localEnv:HOME}${localEnv:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached",
    26  		"source=${localWorkspaceFolder}/.devcontainer/configs,target=/configs,type=bind,consistency=cached"
    27  	],
    28  	// Add the IDs of extensions you want installed when the container is created.
    29  	"extensions": [
    30  		"golang.Go",
    31  	],
    32  	// Use 'postCreateCommand' to run commands after the container is created.
    33  	"postCreateCommand": "cp /scripts/golang/go.mk Makefile && cd tools && make",
    34  	// Use 'forwardPorts' to make a list of ports inside the container available locally.
    35  	// "forwardPorts": [],
    36  
    37  	// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
    38  	"remoteUser": "vscode"
    39  }