|
| 1 | +// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java |
| 3 | +{ |
| 4 | + "name": "Java", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + "args": { |
| 8 | + // Update the VARIANT arg to pick a Java version: 8, 11, 17 |
| 9 | + // Append -bullseye or -buster to pin to an OS version. |
| 10 | + // Use the -bullseye variants on local arm64/Apple Silicon. |
| 11 | + "VARIANT": "17-bullseye", |
| 12 | + // Options |
| 13 | + "INSTALL_MAVEN": "true", |
| 14 | + "MAVEN_VERSION": "3.8.5", |
| 15 | + "INSTALL_GRADLE": "true", |
| 16 | + "NODE_VERSION": "lts/*" |
| 17 | + } |
| 18 | + }, |
| 19 | + |
| 20 | + // Configure tool-specific properties. |
| 21 | + "customizations": { |
| 22 | + // Configure properties specific to VS Code. |
| 23 | + "vscode": { |
| 24 | + // Set *default* container specific settings.json values on container create. |
| 25 | + "settings": { |
| 26 | + "maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn" |
| 27 | + }, |
| 28 | + |
| 29 | + // Add the IDs of extensions you want installed when the container is created. |
| 30 | + "extensions": [ |
| 31 | + "vscjava.vscode-java-pack" |
| 32 | + ] |
| 33 | + } |
| 34 | + }, |
| 35 | + |
| 36 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 37 | + // "forwardPorts": [], |
| 38 | + |
| 39 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 40 | + // "postCreateCommand": "java -version", |
| 41 | + |
| 42 | + // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. |
| 43 | + "remoteUser": "vscode" |
| 44 | +} |
0 commit comments