// readme

Bazel rules for BuildX

[!IMPORTANT] This module was previously published as aspect_rules_buildx. To upgrade, replace aspect_rules_buildx with rules_buildx in your bazel_dep, load() statements and flags.

Bazel rules for buildx so you can use your existing Dockerfiles with Bazel.

Why would you want this?

rules_oci approaches container definitions from the perspective that container images are composites of layers which need to be assembled, and which can be assembled without using a container runtime. This works well for distroless-style images which have few or no “system” dependencies, and which can be described in terms of layering Bazel-defined build products into container images.

Treating OCI images as “just a stack of tarballs” struggles with building more conventional system-image style Docker containers. It’s common to see Dockerfiles which manage dependencies via RUN apt-get install or RUN curl|bash and such which are difficult to model when assembling containers from layers of assets.

This tool provides a bridge for teams with existing Dockerfiles. By leveraging BuildX, which allows for non-hermetic…