bazel-contrib/rules_oci
View on GitHub ↗ ★ 427 Starlark
Bazel rules for building OCI containers
7 mentions on Hacker News by 6 people: 0 stories, 7 comments · first 2023-08-31 · latest 2026-04-23
20082026
-
…approaches are tools like Nix ( https://xeiaso.net/talks/2024/nix-docker-build/ ) and Bazel ( https://github.com/bazel-contrib/rules_oci ). But if you want to use an existing package manager like apt, you can pick it apart. Apt calls dpkg,…
comment by klodolph · 2026-04-23 · in Arch Linux Now Has a Bit-for-Bit Reproducible Docker Image -
A Bazel option is https://github.com/bazel-contrib/rules_oci Doesn’t even need Docker, just writes the image files with a small Python script. Can build from scratch, or use the very small Distroless images.
comment by paulddraper · 2025-12-13 · in Building small Docker images faster -
…< https://github.com/GoogleContainerTools/kaniko >, ko < https://github.com/ko-build/ko >, bazel < https://github.com/bazel-contrib/rules_oci >, apko < https://github.com/chainguard-dev/apko >, or other tools. Each of those has tradeoffs…
comment by halostatue · 2025-04-09 · in Dockerfmt: A Dockerfile Formatter -
…too (I haven't checked) [1]: https://www.usenix.org/conference/lisa14/conference-program/... [2]: https://github.com/bazel-contrib/rules_oci
comment by rockwotj · 2024-03-04 · in Show HN: Hancho – A simple and pleasant build system in ~500 lines of Python -
…is now deprecated but rules_oci[0] is the replacement and so far I find it much nicer [0] - https://github.com/bazel-contrib/rules_oci
comment by dilyevsky · 2023-12-30 · in Tracking developer build times to decide if the M3 MacBook is worth upgrading -
rules_docker is deprecated in favor of rules_oci, which also has Rust support: https://github.com/bazel-contrib/rules_oci/blob/main/docs/ru... I think Bazel can be a good fit for larger polyglot organizations that need to manage large…
comment by ImJasonH · 2023-11-08 · in Ko: Easy Go Containers -
…at all. --- The .py example is bad because there is nothing else (AFAIK) that produces .pyc. [1] https://github.com/bazel-contrib/rules_oci
comment by paulddraper · 2023-08-31 · in Docker Is Four Things