Skip to content

Releases: GoogleContainerTools/rules_distroless

v0.4.2

09 Dec 20:02
073917d
Compare
Choose a tag to compare
v0.4.2 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
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

New Contributors

Full Changelog: v0.4.1...v0.4.2

v0.4.1

05 Dec 21:47
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
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

New Contributors

Full Changelog: v0.4.0...v0.4.1

v0.4.0

04 Dec 19:26
e5f7dc0
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_distroless", version = "0.4.0")

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 = "05c60ab38d1ab3456d30892256b7cc55059933ba1bbe5b2be4fb232788e107fd",
    strip_prefix = "rules_distroless-0.4.0",
    url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.4.0/rules_distroless-v0.4.0.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

Full Changelog: v0.3.9...v0.4.0

v0.3.9

27 Nov 19:15
a1b5fe3
Compare
Choose a tag to compare
v0.3.9 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

New Contributors

Full Changelog: v0.3.8...v0.3.9

v0.3.8

23 Sep 19:03
35a7d5a
Compare
Choose a tag to compare
v0.3.8 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_distroless", version = "0.3.8")

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 = "6d1d739617e48fc3579781e694d3fabb08fc6c9300510982c01882732c775b8e",
    strip_prefix = "rules_distroless-0.3.8",
    url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.8/rules_distroless-v0.3.8.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: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

New Contributors

Full Changelog: v0.3.7...v0.3.8

v0.3.7

06 Sep 15:57
96d68d4
Compare
Choose a tag to compare
v0.3.7 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_distroless", version = "0.3.7")

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 = "44c1e485723ad342212b48e410bae50306b5f8b39da65243e1db2f5b74faa8d6",
    strip_prefix = "rules_distroless-0.3.7",
    url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.7/rules_distroless-v0.3.7.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: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

New Contributors

Full Changelog: v0.3.6...v0.3.7

v0.3.6

09 Aug 20:27
feae484
Compare
Choose a tag to compare
v0.3.6 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_distroless", version = "0.3.6")

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 = "8a3440067453ad211f3b34d4a8f68f65663dc5fd6d7834bf81eecf0526785381",
    strip_prefix = "rules_distroless-0.3.6",
    url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.6/rules_distroless-v0.3.6.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: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: decompression fails with multiple apt.install calls by @thesayyn in #72

Full Changelog: v0.3.5...v0.3.6

v0.3.5

09 Aug 17:22
b07822e
Compare
Choose a tag to compare
v0.3.5 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_distroless", version = "0.3.5")

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 = "f6c47d040b7b7bf9f49890b92d4c905665b6dd78d730f36d3b2bc1d314704ea7",
    strip_prefix = "rules_distroless-0.3.5",
    url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.5/rules_distroless-v0.3.5.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: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

  • Return extension_metadata from apt extension by @mortenmj in #60
  • Fail on manifest duplicate packages by @ericlchen1 in #61
  • fix: auto-setting lock attribute on deb_index by @alexeagle in #63
  • fix: apt.deb_index should work without a lock by @thesayyn in #70

New Contributors

Full Changelog: v0.3.4...v0.3.5

v0.3.4

28 Jun 08:35
9da4ee5
Compare
Choose a tag to compare
v0.3.4 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. 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

New Contributors

Full Changelog: v0.3.3...v0.3.4

v0.3.3

19 May 19:54
Compare
Choose a tag to compare
v0.3.3 Pre-release
Pre-release

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_distroless", version = "0.3.3")

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 = "f3f1563a28158ae979c7499714dde84f8273ea890fd138d77a18eb497acd1434",
    strip_prefix = "rules_distroless-0.3.3",
    url = "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.3/rules_distroless-v0.3.3.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()

What's Changed

  • fix: improve parsing of Package.gz metadata, matching Debian parser logic by @alexconrey in #43
  • Fix for packages sharing the same dependencies by @jacobshirley in #32
  • fix: trim trailing '/' on URL if provided in package YAML by @alexconrey in #45
  • feat: support apt colon arch syntax by @NotBobTheBuilder in #38
  • support zstd compressed {control,data}.tar files by @lazcamus in #41
  • fix package :data visibility so it's compatible with cacerts() by @lazcamus in #44
  • chore: add an example for snapshot.ubuntu.com by @thesayyn in #47
  • docs: fix typos and restructure sentences by @thesayyn in #48
  • Support Packages.gz indices by @mortenmj in #40

New Contributors

Full Changelog: v0.3.2...v0.3.3