Git Product home page Git Product logo

flakeforge's People

Contributors

elohmeier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flakeforge's Issues

Including a usable 'nix' in the container?

First, thanks for this! I've been very interested in Nixery and looking for alternative implementations/approaches. It's great to see how minimal this is able to be.

It looks like this is great for serving a container that's already going to have everything in it that's needed for runtime container use— however, the resulting configuration is fixed in the sense that there's no ability to include and run Nix itself, no nix.conf or sqlite db for the store, etc.

How much effort would be required to make the returned image include a "live" Nix environment such that it can be built upon at runtime? Is such a thing even in scope for a project like this, or is that more something for the upstream dockerTools.streamLayeredImage to implement?


Looks like the DB part at least is non-trivial, per NixOS/nix#3091 it isn't even really possible to generate it after the fact (which wouldn't be ideal anyway, since you'd have to do it on every container start), it would be on the serving tool (flakehub) to track all the included store paths and synthesize a correct DB for them in a separate layer.

Wait... no, it looks like this actually does exist already upstream, at least in part:

https://github.com/NixOS/nixpkgs/blob/70a5ffcb63f0b557d28c320a354336ccf964bf0e/pkgs/build-support/docker/default.nix#L822-L838

So maybe it really is a matter for the serving tool (flakehub) to have a flag or something to enable it? Or maybe a way to set it to default-on or -off, with a meta option that can be set on individual flakes to override the global config?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.