Hacker News new | ask | show | jobs
by ithkuil 954 days ago
I love `ko`. I wish there was something similar for rust but I haven't found it quite yet
4 comments

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 codebases in many languages in a uniform way. Basically Google-circa-2010-sized organizations, coincidentally!

For smaller teams, adopting Bazel too early can be a real productivity drain, where you get all of the downsides of its constraints without as many of its benefits. Bazel is overkill for a project of ~10 Go apps, for example. Ko was actually created to help such a project (Knative) migrate off of Bazel's rules_docker to something better, and I think it achieved the goal!

I have a very opinionated library that builds Docker images in pure Rust.

I don't think building something like `ko` with it should be that much work. (I know, famous last words)

I'll have to check with $employer if it's ok to open source it.

That sounds amazing, please do!

Ko sound like a great idea but I have little interest in running go services!

If you have your project packaged with nix (which shouldn't be too complicated if your build process is not too special) it is trivial to turn a nix derivation into a docker image: https://nixos.org/manual/nixpkgs/stable/#ssec-pkgs-dockerToo.... As a bonus, it is completely language-agnostic.
I'd love to build a ko-for-Rust. I'd just need to learn Rust a bit more. :)
There's lots of people that would be willing to help!!