5
5
6
6
// Features to add to the dev container. More info: https://containers.dev/features.
7
7
"features" : {
8
+ "ghcr.io/devcontainers/features/common-utils:2" : {
9
+ "installZsh" : true ,
10
+ "configureZshAsDefaultShell" : true ,
11
+ "installOhMyZsh" : true ,
12
+ "upgradePackages" : true ,
13
+ "username" : " vscode" ,
14
+ "userUid" : " automatic" ,
15
+ "userGid" : " automatic"
16
+ },
17
+ "ghcr.io/devcontainers-contrib/features/zsh-plugins:0" : {
18
+ "plugins" : " ssh-agent npm zsh-syntax-highlighting zsh-autosuggestions" ,
19
+ "omzPlugins" : " https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting" ,
20
+ "username" : " vscode"
21
+ },
8
22
"ghcr.io/devcontainers/features/docker-outside-of-docker:1" : {
9
23
"moby" : false
10
24
},
25
+ "ghcr.io/devcontainers-contrib/features/apt-get-packages:1" : {
26
+ "packages" : " skopeo"
27
+ },
28
+ "ghcr.io/devcontainers/features/kubectl-helm-minikube:latest" : {},
11
29
"ghcr.io/rio/features/k3d:1" : {},
12
30
"ghcr.io/rio/features/k9s:1" : {},
13
- "ghcr.io/rio/features/kustomize:1" : {}
31
+ "ghcr.io/rio/features/kustomize:1" : {},
32
+ "ghcr.io/jsburckhardt/devcontainer-features/notation:1" : {}
14
33
},
15
34
16
35
// Configure tool-specific properties.
17
36
"customizations" : {
18
37
// Configure properties specific to VS Code.
19
38
"vscode" : {
20
- "settings" : {},
39
+ "settings" : {
40
+ "files.insertFinalNewline" : true ,
41
+ "go.toolsManagement.checkForUpdates" : " local" ,
42
+ "go.useLanguageServer" : true ,
43
+ "go.gopath" : " /go" ,
44
+ "go.lintTool" : " revive" ,
45
+ "go.goroot" : " /usr/local/go" ,
46
+ "go.lintFlags" : [
47
+ " --fast"
48
+ ],
49
+ "[go]" : {
50
+ "editor.formatOnSave" : true ,
51
+ "editor.codeActionsOnSave" : {
52
+ "source.organizeImports" : true
53
+ },
54
+ // Optional: Disable snippets, as they conflict with completion ranking.
55
+ "editor.snippetSuggestions" : " none"
56
+ },
57
+ "[go.mod]" : {
58
+ "editor.formatOnSave" : true ,
59
+ "editor.codeActionsOnSave" : {
60
+ "source.organizeImports" : true
61
+ }
62
+ },
63
+ "gopls" : {
64
+ // Add parameter placeholders when completing a function.
65
+ "usePlaceholders" : true ,
66
+ // If true, enable additional analyses with staticcheck.
67
+ // Warning: This will significantly increase memory usage.
68
+ "staticcheck" : false
69
+ },
70
+ "terminal.integrated.profiles.linux" : {
71
+ "zsh" : {
72
+ "path" : " /usr/bin/zsh"
73
+ }
74
+ },
75
+ "terminal.integrated.defaultProfile.linux" : " zsh"
76
+ },
77
+
78
+ // Add the IDs of extensions you want installed when the container is created.
21
79
"extensions" : [
80
+ " oderwat.indent-rainbow" ,
81
+ " golang.go" ,
82
+ " ms-vscode.go" ,
83
+ " shardulm94.trailing-spaces" ,
84
+ " timonwong.shellcheck"
22
85
]
23
86
}
24
87
},
25
- }
88
+
89
+ "runArgs" : [
90
+ " --cap-add=SYS_PTRACE" ,
91
+ " --security-opt" ,
92
+ " seccomp=unconfined" ,
93
+ " --network=host"
94
+ ],
95
+
96
+ "remoteUser" : " vscode"
97
+ }
0 commit comments