Releases: bazel-contrib/rules_distroless
Releases · bazel-contrib/rules_distroless
v0.8.0
Using BZLMOD
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.8.0")Using WORKSPACE
We do not support WORKSPACE. Use Bzlmod instead.
What's Changed
- Normalize paths in flatten by @loosebazooka in #214
- fix: normalize to ./ by @loosebazooka in #217
- Fix edge-cases of virtual packages by @gergondet-woven in #203
- breaking: drop workspace support by @thesayyn in #166
- fix: filegroup circular deps by @birunts in #164
- ci: drop aspect workflows and test on linux by @thesayyn in #218
Full Changelog: v0.7.1...v0.8.0
v0.7.1
Using BZLMOD
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.7.1")Using WORKSPACE
We do not support WORKSPACE. Use Bzlmod instead.
What's Changed
- fix: avoid dependency on gawk if not required by @benjaminp in #213
New Contributors
- @benjaminp made their first contribution in #213
Full Changelog: v0.7.0...v0.7.1
v0.7.0
Using BZLMOD
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.7.0")Using WORKSPACE
We do not support WORKSPACE. Use Bzlmod instead.
What's Changed
- feat: adds coreutils toolchain for hermetic remote execution by @rszamszur in #210
New Contributors
- @rszamszur made their first contribution in #210
Full Changelog: v0.6.2...v0.7.0
v0.6.2
Using BZLMOD
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.6.2")Using WORKSPACE
We do not support WORKSPACE. Use Bzlmod instead.
What's Changed
- Update deb_postfix.bzl to not merge sbin and bin by @loosebazooka in #200
- Add riscv64 as an package architecture option by @loosebazooka in #201
- Fix compatibility with external modules. by @halfdata in #198
- fix: zero out the gzip timestamp by @thesayyn in #207
New Contributors
Full Changelog: v0.6.1...v0.6.2
v0.6.1
Using BZLMOD
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.6.1")Using WORKSPACE
We do not support WORKSPACE. Use Bzlmod instead.
Full Changelog: v0.6.0...v0.6.1
v0.5.3
v0.5.2
v0.5.1
Using BZLMOD
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.5.1")Using WORKSPACE
We do not support WORKSPACE. Use Bzlmod instead.
Full Changelog: v0.5.0...v0.5.1
v0.4.2
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.4.2")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 = "af93e1f178aea17ada4435881097f43f0392c57f01b6ff7fcd3591868ea53768",
strip_prefix = "rules_distroless-0.4.2",
url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.4.2/rules_distroless-v0.4.2.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
- feat: support deduplication in flatten by @thesayyn in #119
- Handle uncompressed Package files by @JonathanPerry651 in #129
New Contributors
- @JonathanPerry651 made their first contribution in #129
Full Changelog: v0.4.1...v0.4.2
v0.4.1
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_distroless", version = "0.4.1")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 = "b23d9c887148d2453988248cd18e70e9508548983bc97d0fbfcca70578605265",
strip_prefix = "rules_distroless-0.4.1",
url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.4.1/rules_distroless-v0.4.1.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
- fix: use last_rc by @thesayyn in #126
- feat: Add bzip2 support to
apt_deb_repository.bzlby @jthemphill in #127
New Contributors
- @jthemphill made their first contribution in #127
Full Changelog: v0.4.0...v0.4.1