Hacker GitHub

← All repos

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

Mentions per year 7 mentions · busiest year 2023 (3)
20082026
  1. …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,…
  2. 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
  3. …< 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
  4. …too (I haven't checked) [1]: https://www.usenix.org/conference/lisa14/conference-program/... [2]: https://github.com/bazel-contrib/rules_oci
  5. …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
  6. 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
  7. …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