News for hackers. Stuff that matters.
Re:Ko: Easy Go Containers by ithkuil on Wednesday November 08, 2023 @05:12AM (#38188530)
I love `ko`. I wish there was something similar for rust but I haven't found it quite yet
Re:Ko: Easy Go Containers by bambambazooka on Wednesday November 08, 2023 @07:26AM (#38189491)
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.

Re:Ko: Easy Go Containers by jokethrowaway on Wednesday November 08, 2023 @11:17AM (#38192562)
That sounds amazing, please do!

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

Re:Ko: Easy Go Containers by jppittma on Wednesday November 08, 2023 @08:44AM (#38190185)
Re:Ko: Easy Go Containers by ImJasonH on Wednesday November 08, 2023 @11:05AM (#38192362)
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!

Re:Ko: Easy Go Containers by ImJasonH on Wednesday November 08, 2023 @08:44AM (#38190196)
I'd love to build a ko-for-Rust. I'd just need to learn Rust a bit more. :)
Re:Ko: Easy Go Containers by evntdrvn on Wednesday November 08, 2023 @09:57AM (#38191237)
There's lots of people that would be willing to help!!
Re:Ko: Easy Go Containers by matrss on Wednesday November 08, 2023 @10:47AM (#38192051)
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.