File tree 1 file changed +21
-14
lines changed
1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Java" ,
3
- "image" : " mcr.microsoft.com/devcontainers/java:0-17" , // Any generic, debian-based image.
4
-
3
+ "image" : " mcr.microsoft.com/devcontainers/java:0-17" ,
4
+ "extensions" : [
5
+ " vscjava.vscode-java-pack"
6
+ ],
7
+ "postCreateCommand" : " mvn clean package; docker-compose up -d" ,
8
+ "settings" : {
9
+ "java.home" : " /usr/lib/jvm/java-11-openjdk-amd64"
10
+ },
5
11
"features" : {
6
- "ghcr.io/devcontainers/features/docker-in-docker:1" : {
7
- "version" : " latest" ,
8
- "moby" : true
9
- },
10
- "ghcr.io/devcontainers/features/java:1" : {
11
- "version" : " none" ,
12
- "installMaven" : " true" ,
13
- "mavenVersion" : " 3.8.6" ,
14
- "installGradle" : " false"
12
+ "ghcr.io/devcontainers/features/docker-outside-of-docker:1" : {
13
+ "version" : " latest" ,
14
+ "autoForwardPorts" : true ,
15
+ "moby" : true
15
16
},
16
- "ghcr.io/devcontainers-contrib/features/ant-sdkman:2" : {
17
- }
17
+ "ghcr.io/devcontainers/features/java:1" : {
18
+ "version" : " none" ,
19
+ "installMaven" : " true" ,
20
+ "mavenVersion" : " 3.8.6" ,
21
+ "installGradle" : " false"
22
+ },
23
+ "ghcr.io/devcontainers-contrib/features/ant-sdkman:2" : {
24
+ }
18
25
}
19
- }
26
+ }
You can’t perform that action at this time.
0 commit comments