| 15 Oct 2021 |
David Arnold (blaggacao) | The runtime overhead isnprobably not the problem, they all do the same thing. | 20:36:35 |
David Arnold (blaggacao) | The problem is the interface 🙂 | 20:36:42 |
David Arnold (blaggacao) | * The runtime overhead is probably not the problem, they all do the same thing. | 20:36:57 |
@kraftnix:matrix.org | thats true, i would totally not use it without nix | 20:37:21 |
David Arnold (blaggacao) | You can even run VMs on the OCI interface if I'm not completely wrong. | 20:37:21 |
@timdeh:matrix.org | I think that's what kata-containers are all about isn't it? | 20:37:43 |
David Arnold (blaggacao) | Or at least the interop between OCI and VMs is close to given. | 20:37:50 |
@timdeh:matrix.org | systemd is just annoying when it comes to standards. even their versioning scheme is completely non standard 😅 | 20:38:14 |
David Arnold (blaggacao) | There are VM runtimes, yeah. | 20:38:17 |
David Arnold (blaggacao) | There can be a nix runtime, too. | 20:38:25 |
David Arnold (blaggacao) | Why not? | 20:38:43 |
@timdeh:matrix.org | unless you wanna start an effort to redefine all the existing NixOS modules from scratch using some other format, then a NixOS runtime is the only viable runtime 😆 | 20:40:02 |
@timdeh:matrix.org | there is already the aforementioned OCI builder derivation for simple stuff | 20:40:24 |
@timdeh:matrix.org | Although maybe Nix should advertise more how awesome it is at building these containers! Because I think it is probably the best container builder frontend to docker/OCI that exists atm. | 20:41:10 |
David Arnold (blaggacao) | The category "NixOs runtime" is not really precise. It's more "artifact runtime". | 20:48:55 |
David Arnold (blaggacao) | * The category "NixOs runtime" is not really precise: it's more "artifact runtime". | 20:49:10 |
David Arnold (blaggacao) | NixOs containers are NixOS artifacts. | 20:49:26 |
@timdeh:matrix.org | well yeah, I wasn't aiming for exact precision in this context 😛 | 20:49:42 |
David Arnold (blaggacao) | But it's important to avoid the "Nixos-bias" 😆 | 20:50:05 |
@timdeh:matrix.org | I reserve that brain exhausting exercise for when I actually enter the code editor 🙂 | 20:50:09 |
David Arnold (blaggacao) | So the conclusion is NixosContainer artifacts have no reason to not be OCI compliant artifacts. | 20:50:43 |
David Arnold (blaggacao) | (no evident [to me] reason) | 20:50:57 |
@timdeh:matrix.org | In theory yes | 20:51:00 |
@timdeh:matrix.org | But it's difficult enough at least that nobody has yet to bother trying | 20:51:20 |
David Arnold (blaggacao) | Afaik oci-compliance is a tar that specifies a runnable entrypoint. | 20:51:39 |
David Arnold (blaggacao) | (through a json manifest) | 20:51:55 |
@timdeh:matrix.org | Yeah, I don't think the compliance part is the difficult part, its the "actually get systemd working" part that will be rough seas | 20:52:20 |
David Arnold (blaggacao) | Why? If it's PID1? | 20:52:52 |
@timdeh:matrix.org | unless we just go for inception and put an nspawn container inside an OCI container 😛 | 20:52:57 |
@timdeh:matrix.org | Give it a try and you tell me | 20:53:07 |