OCI image builds for spindle with support for nixos microvms.
Files
README.md

nix-builder for spindle OCI images #

  • Sticks to the pinned nixpkgs used by upstream
  • Includes everything needed to run microvm-powered jobs on nixos images
  • Currently hardcoded to x86_64-linux support

How to build #

nix build .#spindle-docker-image

A built image is then placed in ./result which you can docker load < result or skopeo copy ....

Deploying the image #

// TODO: settle on a good docker-compose example

Releases #

// TODO: dogfood CI & publish to a registry

Disclaimer #

This currently uses a fork of the tangled core repo, as upstream defaults to overriding extra-substituters instead of substituters in the nix config for the guest microvm. As it also hardcodes the substituters priority to 40, it means any caching setup tries to pull from cache.nixos.org in parallel. See https://tangled.org/daroche.me/core/tree/strict-cache-shuttle.