Skip to content

v0.3.16

Choose a tag to compare

@github-actions github-actions released this 14 Jul 17:03
dbb9b0d

Using Bzlmod

Add the following to your MODULE.bazel file:

bazel_dep(name = "rules_img", version = "0.3.16")

For further instructions, see the README.

Using WORKSPACE

Add the following to your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_img",
    sha256 = "340c9ff589cbda8cb3a2149f143a494268d6a769cf08b2adfc822e5c9ee720f1",
    urls = ["https://github.com/bazel-contrib/rules_img/releases/download/v0.3.16/rules_img-v0.3.16.tar.gz"],
)

# Load dependencies
load("@rules_img//img:dependencies.bzl", "rules_img_dependencies")
rules_img_dependencies()

# Initialize Bazel Features
load("@bazel_features//:deps.bzl", "bazel_features_deps")

# Register prebuilt toolchains
load("@rules_img//img:repositories.bzl", "img_register_prebuilt_toolchains")
img_register_prebuilt_toolchains()
register_toolchains("@img_toolchain//:all")

# Example: Pull a base image
load("@rules_img//img:pull.bzl", "pull")
pull(
    name = "alpine",
    digest = "sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1",
    registry = "index.docker.io",
    repository = "library/alpine",
    tag = "3.22",
)

For more examples, see the README.

What's Changed

  • image_manifest: add INHERIT_FROM_BASE sentinel for config inheritance by @malt3 in #604
  • deploy: search OCI layouts for compact streams before runfiles by @malt3 in #607
  • Track blob sources per layer by @malt3 in #608
  • mtree: add layer and image mtree output groups and img mtree merge tool by @malt3 in #603
  • Remove layer metadata "name" field; track history via --history flag by @malt3 in #609
  • simplify developer setup by @malt3 in #610
  • fix: add TTL eviction to registry caches by @Harshal96 in #611
  • Identify rules_img as the calling tool in REAPI requests by @malt3 in #613
  • feat: add image_structure_test rule by @malt3 in #614
  • fix: preserve bearer credential helper tokens by @Harshal96 in #612
  • feat: prefetch layer contents ahead of slow consumers by @malt3 in #618
  • fix(layer): map empty runfiles through the same namespace transform a… by @malt3 in #619
  • fix: compute include_layers per-operation in multi_deploy by @malt3 in #620
  • feat(push): restore progress bar for image push by @malt3 in #621
  • fix: survive RST_STREAM during slow CAS reads by @malt3 in #622
  • feat: pool gRPC connections for remote CAS reads by @malt3 in #623
  • prepare 0.3.16 by @malt3 in #624

Full Changelog: v0.3.15...v0.3.16