9 ms·
> "Tags", "registries", "base images", "extraCommands"... no thanks All of which are optional. It's just doing the same thing as your tar commands.
by kam 4y ago
> "Tags", "registries", "base images", "extraCommands"... no thanks
All of which are optional. It's just doing the same thing as your tar commands.
- chriswarbo 4y ago> All of which are optional True, but they're dangerous enough that I'd still at least want a wrapper function which doesn't accept them at all. > It's just doing the same thing as your tar commands. Not quite: I came up with those commands by reading the OCI specifications. In contrast, the output of the dockerTools functions does not quite follow those specifications, and appears to be more Docker-specific.
- pxc 4y agoNix 3 has a dead simple, builtin CLI frontend for doing this with built packages: https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-bundle.html https://nixos.org/manual/nix/unstable/command-ref/new-cli/ni... It uses dockerTools: https://github.com/NixOS/bundlers/blob/master/flake.nix https://github.com/NixOS/bundlers/blob/master/flake.nix maybe a bundler can be added that uses OCI tools, thus providing such a wrapper and giving a nice CLI for it