2020-08-11 12:57:47 -07:00
|
|
|
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
|
2021-09-17 00:53:48 +00:00
|
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java
|
2019-04-16 20:03:58 -07:00
|
|
|
{
|
2020-08-11 12:57:47 -07:00
|
|
|
"name": "Java",
|
|
|
|
|
"build": {
|
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
|
"args": {
|
2022-05-10 17:30:16 +02:00
|
|
|
// Update the VARIANT arg to pick a Java version: 8, 11, 17
|
2021-09-17 00:53:48 +00:00
|
|
|
// Append -bullseye or -buster to pin to an OS version.
|
|
|
|
|
// Use the -bullseye variants on local arm64/Apple Silicon.
|
2022-05-10 17:30:16 +02:00
|
|
|
"VARIANT": "17-bullseye",
|
2020-08-31 02:53:32 +00:00
|
|
|
// Options
|
2020-08-11 12:57:47 -07:00
|
|
|
"INSTALL_MAVEN": "true",
|
2022-05-10 17:30:56 +02:00
|
|
|
"MAVEN_VERSION": "3.8.5",
|
2020-08-11 12:57:47 -07:00
|
|
|
"INSTALL_GRADLE": "false",
|
|
|
|
|
"NODE_VERSION": "lts/*"
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-05-17 12:41:48 -07:00
|
|
|
|
|
|
|
|
// Configure tool-specific properties.
|
|
|
|
|
"customizations": {
|
|
|
|
|
// Configure properties specific to VS Code.
|
|
|
|
|
"vscode": {
|
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
|
|
|
"settings": {
|
|
|
|
|
"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"
|
|
|
|
|
]
|
|
|
|
|
}
|
2019-08-06 01:08:09 +00:00
|
|
|
},
|
2022-05-10 17:30:16 +02:00
|
|
|
|
2020-08-11 12:57:47 -07:00
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
|
|
|
// "forwardPorts": [],
|
2019-08-26 14:00:04 -07:00
|
|
|
|
2020-08-11 12:57:47 -07:00
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2019-08-26 14:00:04 -07:00
|
|
|
// "postCreateCommand": "java -version",
|
|
|
|
|
|
2020-08-31 02:53:32 +00:00
|
|
|
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
2020-08-11 12:57:47 -07:00
|
|
|
"remoteUser": "vscode"
|
|
|
|
|
}
|