39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.159.0/containers/java
|
|
{
|
|
"name": "Java",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"args": {
|
|
// Update the VARIANT arg to pick a Java version: 11, 14
|
|
"VARIANT": "11",
|
|
// Options
|
|
"INSTALL_MAVEN": "true",
|
|
"INSTALL_GRADLE": "false",
|
|
"INSTALL_NODE": "false",
|
|
"NODE_VERSION": "lts/*"
|
|
}
|
|
},
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/bash",
|
|
"java.home": "/docker-java-home",
|
|
"maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn"
|
|
},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"vscjava.vscode-java-pack"
|
|
],
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
// "postCreateCommand": "java -version",
|
|
|
|
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
|
"remoteUser": "vscode"
|
|
}
|