Files
java/.devcontainer/devcontainer.json

40 lines
1.3 KiB
JSON
Raw Normal View History

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": {
2021-08-13 16:12:30 +00:00
// Update the VARIANT arg to pick a Java version: 8, 11, 14
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.
"VARIANT": "11-bullseye",
2020-08-31 02:53:32 +00:00
// Options
2020-08-11 12:57:47 -07:00
"INSTALL_MAVEN": "true",
2021-08-13 16:12:30 +00:00
"MAVEN_VERSION": "3.6.3",
2020-08-11 12:57:47 -07:00
"INSTALL_GRADLE": "false",
"NODE_VERSION": "lts/*"
}
},
2019-08-26 14:00:04 -07:00
2020-08-11 12:57:47 -07:00
// Set *default* container specific settings.json values on container create.
2019-12-11 05:18:22 +00:00
"settings": {
2020-08-31 02:53:32 +00:00
"java.home": "/docker-java-home",
"maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn"
2019-08-06 01:08:09 +00:00
},
2020-08-11 12:57:47 -07:00
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"vscjava.vscode-java-pack"
],
2019-08-26 14:00:04 -07: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"
}