Repository navigation
v0.3.24
Using Bzlmod
Add the following to your MODULE.bazel file:
bazel_dep(name = "rules_img", version = "0.3.24")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 = "75bce2c9897960b4dc2198785a2cd61daec38a380dee5f247cdc2655775a9b71",
urls = ["https://github.com/bazel-contrib/rules_img/releases/download/v0.3.24/rules_img-v0.3.24.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")
# Register hermetic launcher toolchains
register_toolchains("@hermetic_launcher//launcher/private/prebuilt: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
- fix(deploy): honor registry overrides in cross-mount hints by @Harshal96 in #804
- feat(manifest): add omit_media_type to leave mediaType out of the manifest by @rdark in #805
- fix(compress): compress zstd layers on all cores by @malt3 in #807
- fix: exclude img_tool development rc files from source archives by @dzbarsky in #813
- update deps and test Bazel 10.0.0rc1 by @malt3 in #815
- ci: authenticate BES uploads by @malt3 in #820
- Fix creating estargz from external tarball by @prime000000 in #816
- fix(pull): keep tag-only pulls out of the repo contents cache by @AKarbas in #818
- fix: copy source-file blobs into the output base by @malt3 in #824
- Place extra default outputs as well as possible by @malt3 in #826
- disable path mapping for PushMetadata action by @malt3 in #827
- fix: make tree-artifact blob symlinks configurable by @malt3 in #823
- feat(images): pull by tag alone with unsafe_allow_tag_without_digest by @AKarbas in #825
- feat(erofs): add EROFS filesystem-image layers by @malt3 in #830
- multi_deploy: add push_at_build_time output group by @malt3 in #833
- feat(test): add image_size_test for wasted bytes by @Harshal96 in #814
- fix: record the img tool settings in the deploy manifest by @malt3 in #834
- fix(cache): default the remote cache scheme to grpcs by @malt3 in #835
- feat: support path mapping in the DownloadBlob action by @malt3 in #836
- fix(transitions): stop recording original_platforms; add image_index(index_platform) by @kmosher in #819
- fix for Incorrect conversion between integer types by @malt3 in #838
- Add support for zstd:chunked format by @prime000000 in #829
- feat(convert): add archive import and layer-flattening rules by @q4rk in #811
- fix(convert): keep the manifest order of a generated image index by @malt3 in #842
- feat(ext4): add a pure-Go ext4 image writer by @malt3 in #843
- feat(layer): write ext4 images from the img layer command by @malt3 in #844
- feat(layer): add ext4 as a layer format by @malt3 in #845
- feat(cpio): add a pure-Go cpio archive writer by @malt3 in #848
- fix(compress): ignore a compression_level that is out of range for the layer's codec by @bd-dstodolsky in #846
- feat(layer): write cpio archives from the img layer command by @malt3 in #849
- fix(cas-dir): shard the sha256 directory by digest prefix by @rbtcollins in #850
- feat(compress): add a zstd_window_log setting by @bd-dstodolsky in #851
- feat(layer): add cpio as a layer format by @malt3 in #852
- feat(fat32): add a pure-Go FAT32 image writer by @malt3 in #853
- feat(layer): write FAT32 images from the img layer command by @malt3 in #854
- feat(layer): add FAT32 as a layer format by @malt3 in #856
- fix(cpio): bound-check header integers where they are converted by @malt3 in #855
- docs(readme): add a list of rules_img users by @malt3 in #857
- feat(extentstream): add the experimental extent stream and GPT/MBR planning by @malt3 in #858
- feat(disk_image): add disk_image and disk_partition rules by @malt3 in #859
- feat(dd): add img dd and image_dd to write disks and layers by @malt3 in #860
- test(e2e): add e2e/disk, a bootable UEFI disk image by @malt3 in #861
- prepare 0.3.24 by @malt3 in #862
- fix(release): add img_tool/pkg/casdirlayout to --deleted_packages by @malt3 in #863
New Contributors
- @AKarbas made their first contribution in #818
- @kmosher made their first contribution in #819
- @q4rk made their first contribution in #811
- @bd-dstodolsky made their first contribution in #846
- @rbtcollins made their first contribution in #850
Full Changelog: v0.3.23...v0.3.24