github.com/prebid/prebid-server/v2@v2.18.0/.devcontainer/devcontainer.json (about) 1 // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: 2 // https://github.com/microsoft/vscode-dev-containers/tree/v0.112.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 9 "VARIANT": "1.20", 10 // Options 11 "INSTALL_NODE": "false", 12 "NODE_VERSION": "lts/*" 13 } 14 }, 15 "containerEnv": { 16 "GOPRIVATE": "${localEnv:GOPRIVATE}", 17 "GOFLAGS": "-buildvcs=false", 18 "PBS_GDPR_DEFAULT_VALUE": "0" 19 }, 20 "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], 21 22 // Set *default* container specific settings.json values on container create. 23 "settings": { 24 "terminal.integrated.profiles.linux": { 25 "bash": { 26 "path": "/usr/bin/bash" 27 } 28 }, 29 "terminal.integrated.defaultProfile.linux": "bash", 30 "go.toolsManagement.checkForUpdates": "off", 31 "go.gopath": "/go", 32 }, 33 34 // Add the IDs of extensions you want installed when the container is created. 35 "extensions": [ 36 "golang.Go", 37 "ms-azuretools.vscode-docker", 38 "redhat.vscode-xml", 39 "redhat.vscode-yaml", 40 "eamodio.gitlens", 41 ], 42 43 // Use 'forwardPorts' to make a list of ports inside the container available locally. 44 "forwardPorts": [8000,8001,6060], 45 46 // Use 'postCreateCommand' to run commands after the container is created. 47 "postCreateCommand": "mkdir ~/.ssh; ssh-keyscan github.com > ~/.ssh/known_hosts", 48 49 // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. 50 "remoteUser": "vscode" 51 }