v0.3.9
Pre-release
Pre-release
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_distroless", version = "0.3.9")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_distroless",
sha256 = "baa2b40100805dc3c2ad5dd1ab8555f1d19484f083a10d685c5812c8b7a78ad8",
strip_prefix = "rules_distroless-0.3.9",
url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.9/rules_distroless-v0.3.9.tar.gz",
)
######################
# rules_distroless setup #
######################
# Fetches the rules_distroless dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_distroless//distroless:dependencies.bzl", "distroless_dependencies")
distroless_dependencies()
load("@rules_distroless//distroless:toolchains.bzl", "distroless_register_toolchains")
distroless_register_toolchains()
load("@rules_distroless//apt:apt.bzl", "apt")
# bazel run @bullseye//:lock
apt.install(
name = "bullseye",
lock = "@@//:bullseye.lock.json",
manifest = "//:bullseye.yaml",
)
load("@bullseye//:packages.bzl", "bullseye_packages")
bullseye_packages()
apt.install(
name = "bullseye_nolock",
manifest = "//:bullseye.yaml",
nolock = True,
)
load("@bullseye_nolock//:packages.bzl", "bullseye_nolock_packages")
bullseye_nolock_packages()
What's Changed
- dpkg_status should use fixed mtime by @alexeagle in #105
- document that
cacerts()
requiresSSL_CERT_FILE
set in the environment by @lazcamus in #102 - fix: e2e MODULE.bazel.lock conflicts and repo name in copy.sh script by @jjmaestro in #87
- fix: buildifier by @jjmaestro in #108
- tar: Make all gzip compression hermetic by @DolceTriade in #75
- feat: add MODULE.bazel support to copy.sh plus silent lockless repos by @jjmaestro in #88
- refactor: testing by @jjmaestro in #91
- refactor: bring deb_index on par with bzlmod api by @thesayyn in #111
- refactor: improve copy.sh by @jjmaestro in #92
- feat: support optional dependencies by @thesayyn in #59
- docs: improve documentation by @jjmaestro in #109
- chore: remove the MODULE.bazel.lock file by @jjmaestro in #114
New Contributors
- @DolceTriade made their first contribution in #75
Full Changelog: v0.3.8...v0.3.9