Skip to content

Commit

Permalink
Update Distroless Java base images to java17-debian12. (#238)
Browse files Browse the repository at this point in the history
This also means updating the build to use JDK 17.

Closes #213
  • Loading branch information
SanjayVas committed Mar 15, 2024
1 parent 4327bbf commit 128ce49
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ build --repo_env='CC=clang'
# Use C++17 language features.
build --cxxopt='-std=c++17'

# Use JDK 11. See https://github.com/bazelbuild/bazel/issues/6245.
build --java_runtime_version=remotejdk_11
# Use JDK 17.
build --java_runtime_version=remotejdk_17

# Target Java 9.
build --java_language_version=9
Expand Down
8 changes: 4 additions & 4 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "java_image_base",
# Digest of nonroot-amd64 tag.
digest = "sha256:781e3acb7934ce0fa5ceeb62ee1369248ab23ae26dce002138b3d0e5338d7486",
image = "gcr.io/distroless/java11-debian11",
digest = "sha256:bb37a895f2b7886f5b57660dcb8a59d831c6f8439209364564f8044e08768c51",
image = "gcr.io/distroless/java17-debian12",
)
oci.pull(
name = "java_debug_image_base",
# Digest of debug-nonroot-amd64 tag.
digest = "sha256:95749ff107e1a1e14a62709f305208973530764cdac02a0f7762295dba2c40d2",
image = "gcr.io/distroless/java11-debian11",
digest = "sha256:2ce463ec2705fddf68b5d96af302d49719760c841e8000c1eb5bfc5f77160b1c",
image = "gcr.io/distroless/java17-debian12",
)
use_repo(
oci,
Expand Down
26 changes: 13 additions & 13 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 128ce49

Please sign in to comment.