-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevcontainer.json
More file actions
58 lines (56 loc) · 1.93 KB
/
devcontainer.json
File metadata and controls
58 lines (56 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "Java Operator SDK Tutorial",
"dockerFile": "Dockerfile",
"runArgs": [
"-v", "${env:HOME}/.kube:/home/jboss/.kube",
"-v", "${env:HOME}/.vs-kubernetes:/home/jboss/.vs-kubernetes",
// use local .oh-my-zsh configuration if it exists (overwriting one in container).
// comment the following line out if you want to use local installation on container instead
"-v", "${env:HOME}/.oh-my-zsh:/home/jboss/.oh-my-zsh",
"-v", "${env:HOME}/.helm:/home/jboss/.helm",
"-v", "${env:HOME}/.ssh:/home/jboss/.ssh",
// mount the maven cache locally
"-v", "${env:HOME}/.m2/:/home/jboss/.m2",
// mount npm cache locally
"-v", "${env:HOME}/.npm:/home/jboss/.npm",
// override dockerfile DEMO_HOME to whatever folder vscode considers the root folder in the container
"-e", "DEMO_HOME=${containerWorkspaceFolder}",
],
"extensions": [
"vscjava.vscode-java-pack",
"redhat.vscode-xml",
"redhat.vscode-quarkus",
"ggrebert.quarkus-snippets",
"humao.rest-client",
"asciidoctor.asciidoctor-vscode",
"madhavd1.javadoc-tools"
],
"postStartCommand": "rsync -a .devcontainer/workspace-setup/ ${containerWorkspaceFolder}/.vscode/ --ignore-existing",
"settings":{
"java.home": "/usr/lib/jvm/java-11-openjdk",
"workbench.colorTheme": "Solarized Light",
"http.proxyStrictSSL": false,
"workbench.tips.enabled": false,
"xml.format.enabled": true,
// don't pull in the .m2 cache
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,
"**/.m2": true,
},
// Don't import the example-operator project
// these exclusions don't work entirely as advertised.
// See: https://github.com/redhat-developer/vscode-java/issues/1698
"java.import.exclusions": [
//"**/example-operator",
//"example-operator/**",
"**/.m2/**",
"**/node_modules/**",
"**/.metadata/**",
"**/archetype-resources/**",
"**/META-INF/maven/**"
]
}
}