v0.3.4
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.4")
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 = "4c5e98aa15e3684b580ea2e2bc8b95bac6e23a26b25ec8747c39e74ced2305da",
strip_prefix = "rules_distroless-0.3.4",
url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.4/rules_distroless-v0.3.4.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//apt:index.bzl", "deb_index")
# bazel run @bullseye//:lock
deb_index(
name = "bullseye",
lock = "//:bullseye.lock.json",
manifest = "//:bullseye.yaml",
)
load("@bullseye//:packages.bzl", "bullseye_packages")
bullseye_packages()
What's Changed
- fix: evaluate return_code from rctx.execute() call when fetching package indexes by @alexconrey in #46
- docs: write the readme by @thesayyn in #49
- Update README.md by @loosebazooka in #52
- Update README.md by @alexeagle in #57
- Bzlmod support by @jacobshirley in #50
New Contributors
- @alexeagle made their first contribution in #57
Full Changelog: v0.3.3...v0.3.4