diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b8f4503..a2380d3 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ -# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.191.0/containers/java/.devcontainer/base.Dockerfile -# [Choice] Java version: 8, 11, 16 -ARG VARIANT=11 +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java/.devcontainer/base.Dockerfile +# [Choice] Java version (use -bullseye variants on local arm64/Apple Silicon): 8, 11, 16, 8-bullseye, 11-bullseye, 16-bullseye, 8-buster, 11-buster, 16-buster +ARG VARIANT=11-bullseye FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT} # [Option] Install Maven diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 83f8ba6..cebf301 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,12 +1,14 @@ // 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.191.0/containers/java +// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java { "name": "Java", "build": { "dockerfile": "Dockerfile", "args": { // Update the VARIANT arg to pick a Java version: 8, 11, 14 - "VARIANT": "11", + // Append -bullseye or -buster to pin to an OS version. + // Use the -bullseye variants on local arm64/Apple Silicon. + "VARIANT": "11-bullseye", // Options "INSTALL_MAVEN": "true", "MAVEN_VERSION": "3.6.3",