Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
go-dev-container
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
go-dev-container
Commits
c3087ebd
Commit
c3087ebd
authored
Sep 19, 2024
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
develop env
parent
f175a194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
60 deletions
+36
-60
devcontainer.json
.devcontainer/devcontainer.json
+36
-60
No files found.
.devcontainer/devcontainer.json
View file @
c3087ebd
{
{
"name"
:
"project-dev"
,
"name"
:
"galaxy-golang开发环境"
,
"dockerFile"
:
"dockerFile"
,
//
"build"
:
{
"service"
:
"vscode"
,
//
"dockerfile"
:
"Dockerfile"
,
"runServices"
:
[
//
"context"
:
"."
,
"vscode"
//
"args"
:
{}
],
//
},
"shutdownAction"
:
"stopCompose"
,
"image"
:
"harbor.galaxy-immi.com/galaxy-open-develop/go-develop:v0.1"
,
"postCreateCommand"
:
"~/.windows.sh && go mod download && go mod tidy"
,
"containerUser"
:
"root"
,
"workspaceFolder"
:
"/workspace"
,
"remoteUser"
:
"root"
,
//
"overrideCommand"
:
""
,
"updateRemoteUserUID"
:
true
,
"customizations"
:
{
"mounts"
:
[
//挂载家目录
"vscode"
:
{
{
"extensions"
:
[
"source"
:
"${localEnv:HOME}"
,
"golang.go"
,
"target"
:
"/root"
,
"eamodio.gitlens"
,
//
IDE
Git
information
"type"
:
"bind"
"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"
},
"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"
},
"remote.extensionKind"
:
{
"ms-azuretools.vscode-docker"
:
"workspace"
}
}
}
}
}
}
],
\ No newline at end of file
"containerEnv"
:
{
"DEBUG"
:
"debug"
,
"ENV_NACOS_DIR"
:
"${containerWorkspaceFolder}"
},
"customizations"
:
{
"vscode"
:
{
"extensions"
:
[
"golang.go"
]
},
"settings"
:
{
"terminal.integrated.shell.linux"
:
"/bin/bash"
},
"remoteEnv"
:
{
"DEBUG"
:
"debug"
,
"ENV_NACOS_DIR"
:
"../"
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment