Skip to content

Commit 0b5bb73

Browse files
committed
added new java 17 dev container for workspaces
1 parent d0e1e55 commit 0b5bb73

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
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
13
{
2-
"name": "my-project-devcontainer",
3-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", // Any generic, debian-based image.
4-
"features": {
5-
"ghcr.io/devcontainers/features/go:1": {
6-
"version": "1.18"
7-
},
8-
"ghcr.io/devcontainers/features/docker-in-docker:1": {
9-
"version": "latest",
10-
"moby": true
11-
}
12-
}
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:0-17",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "none",
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+
25+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
26+
// "remoteUser": "root"
1327
}

0 commit comments

Comments
 (0)