Commit c3087ebd authored by Kunkka王辉's avatar Kunkka王辉 😲

develop env

parent f175a194
{
"name": "project-dev",
"dockerFile": "dockerFile",
"service": "vscode",
"runServices": [
"vscode"
"name": "galaxy-golang开发环境",
// "build": {
// "dockerfile": "Dockerfile",
// "context": ".",
// "args": {}
// },
"image":"harbor.galaxy-immi.com/galaxy-open-develop/go-develop:v0.1",
"containerUser":"root",
"remoteUser": "root",
"updateRemoteUserUID":true,
"mounts": [ //挂载家目录
{
"source": "${localEnv:HOME}",
"target": "/root",
"type":"bind"
}
],
"shutdownAction": "stopCompose",
"postCreateCommand": "~/.windows.sh && go mod download && go mod tidy",
"workspaceFolder": "/workspace",
// "overrideCommand": "",
"containerEnv": {
"DEBUG": "debug",
"ENV_NACOS_DIR": "${containerWorkspaceFolder}"
},
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"eamodio.gitlens", // IDE Git information
"davidanson.vscode-markdownlint",
"ms-azuretools.vscode-docker", // Docker integration and linting
"shardulm94.trailing-spaces", // Show trailing spaces
"Gruntfuggly.todo-tree", // Highlights TODO comments
"bierner.emojisense", // Emoji sense for markdown
"stkb.rewrap", // rewrap comments after n characters on one line
"vscode-icons-team.vscode-icons", // Better file extension icons
],
"settings": {
"files.eol": "\n",
"editor.formatOnSave": true,
"go.buildTags": "",
"go.toolsEnvVars": {
"CGO_ENABLED": "0"
},
"go.useLanguageServer": true,
"go.testEnvVars": {
"CGO_ENABLED": "1"
"golang.go"
]
},
"go.testFlags": [
"-v",
"-race"
],
"go.testTimeout": "10s",
"go.coverOnSingleTest": true,
"go.coverOnSingleTestFile": true,
"go.coverOnTestPackage": true,
"go.lintTool": "golangci-lint",
"go.lintOnSave": "package",
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"gopls": {
"usePlaceholders": false,
"staticcheck": true,
"vulncheck": "Imports"
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"remote.extensionKind": {
"ms-azuretools.vscode-docker": "workspace"
}
}
"remoteEnv": {
"DEBUG": "debug",
"ENV_NACOS_DIR": "../"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment