rmohr / bazeldnf

Build multi-arch base containers based on RPM with bazel.
Apache License 2.0
30 stars 18 forks source link

wip: adopt bzlmod #75

Closed manuelnaranjo closed 1 month ago

manuelnaranjo commented 4 months ago

TBD

I need to revist the list of commits and squash a few most likely

manuelnaranjo commented 4 months ago

Ok now this works as expected, I can consume it from our MODULE.bazel with:

# used to convert RPMs into .tar we can use as container layers
bazel_dep(name = "bazeldnf", version = "0.6.0-rc8")
archive_override(
    module_name = "bazeldnf",
    # computed with:
    # wget <url> -O rule.tar.gz
    # INTEGRITY=$(openssl dgst -sha256 -binary rule.tar.gz | openssl base64 -A | sed 's/^/sha256-/')
    integrity = "sha256-3MuxVWW2Biya+LWNfi7GC3qbWCPg2yr/mInOb7w8rHU=",
    strip_prefix = "bazeldnf-v0.6.0-rc8",
    urls = [
        "https://github.com/bookingcom/bazeldnf/releases/download/v0.6.0-rc8/bazeldnf-v0.6.0-rc8.tar.gz",
    ],
    patch_strip = 1,
    patches = [
        "@//bazel:patches/bazeldnf.patch",
    ],
)

Will cleanup the branch so we can merge the initial bzlmod support

rmohr commented 1 month ago

Finally there with https://github.com/rmohr/bazeldnf/pull/77