6 ms·
If you generate Dockerfiles using Nix code, how do you build and run those images? Docker? I use NixOS on my self-hosted CI runners, and I generate the OCI ima
by sshine 4mo ago
If you generate Dockerfiles using Nix code, how do you build and run those images? Docker?
I use NixOS on my self-hosted CI runners, and I generate the OCI image using Nix via pkgs.dockerTools:
https://git.shine.town/infra/runners/src/branch/main/nix/nixos-runner.nix#L76-L109 https://git.shine.town/infra/runners/src/branch/main/nix/nix...
It has nothing to do with Docker as such, it's just named that.
https://nix.dev/tutorials/nixos/building-and-running-docker-images.html https://nix.dev/tutorials/nixos/building-and-running-docker-...
- uberduper 4mo agoNix isn't involved in my container images. I just take the dependencies and env vars from the flake and generate a dockerfile. Guess I need to try out dockerTools. That looks really convenient. Thanks!