Skip to content

Commit

Permalink
feat(setup): devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Sep 25, 2023
1 parent c06a319 commit a229c51
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,18 @@
{
"name": "Java",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/java:0-17",
"image": "mcr.microsoft.com/devcontainers/java:1-8-bullseye",

"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "none",
"installMaven": "true",
"mavenVersion": "3.8.6",
"installGradle": "false"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
"extensions": [
"streetsidesoftware.code-spell-checker"
]
},
"ghcr.io/devcontainers-contrib/features/ant-sdkman:2": {
"version": "latest",
"jdkVersion": "8",
"jdkDistro": "ms"
}
}

Expand All @@ -31,6 +24,9 @@
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "java -version",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

0 comments on commit a229c51

Please sign in to comment.