Skip to content

Commit 04196e6

Browse files
committed
dev container added
1 parent 8fe7038 commit 04196e6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
3+
{
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:1-21-bookworm",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "21",
11+
"installMaven": "true",
12+
"installGradle": "false"
13+
}
14+
},
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
// "forwardPorts": [],
18+
19+
// Use 'postCreateCommand' to run commands after the container is created.
20+
// "postCreateCommand": "java -version",
21+
22+
// Configure tool-specific properties.
23+
"customizations" : {
24+
"jetbrains" : {
25+
"backend" : "IntelliJ"
26+
}
27+
},
28+
29+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30+
// "remoteUser": "root"
31+
}

0 commit comments

Comments
 (0)