3 ms·
I love `ko`. I wish there was something similar for rust but I haven't found it quite yet
by ithkuil 3y ago
I love `ko`. I wish there was something similar for rust but I haven't found it quite yet
- bambambazooka 3y agoI 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.
- jokethrowaway 3y agoThat sounds amazing, please do! Ko sound like a great idea but I have little interest in running go services!
- jppittma 3y agoBazel has this functionality. https://github.com/bazelbuild/rules_docker#rust_image https://github.com/bazelbuild/rules_docker#rust_image
- ImJasonH 3y agorules_docker is deprecated in favor of rules_oci, which also has Rust support: https://github.com/bazel-contrib/rules_oci/blob/main/docs/rust.md 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!
- ImJasonH 3y agoI'd love to build a ko-for-Rust. I'd just need to learn Rust a bit more. :)
- evntdrvn 3y agoThere's lots of people that would be willing to help!!
- matrss 3y agoIf 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-dockerTools-buildLayeredImage https://nixos.org/manual/nixpkgs/stable/#ssec-pkgs-dockerToo.... As a bonus, it is completely language-agnostic.