// 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.134.0/containers/java { "name": "Java", "build": { "dockerfile": "Dockerfile", "args": { // Update the VARIANT arg to pick a Java version >= 11 "VARIANT": "11", // Options to install Maven or Gradle "INSTALL_MAVEN": "true", "MAVEN_VERSION": "3.6.3", "INSTALL_GRADLE": "false", "GRADLE_VERSION": "5.4.1", "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" }, // 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", // Comment out the next line to run as root "remoteUser": "vscode" }