Code Monkey home page Code Monkey logo

Comments (5)

cgwalters avatar cgwalters commented on September 17, 2024 1

I chose the existing semantics intentionally because I found when I was using rpm-ostree compose tree a lot locally I'd end up passing --cache-only a lot by hand. Not entirely opposed to changing but...I like what we have now too.

How about coreos-assembler fetch -b, which would work exactly like how rpmdistro-gitoverlay fetch -b does: do a fetch, and if something changed, do a build.

(Though in the c-a case "something changed" does includes the images, so it'd probably be easier to just have fetch -b just run a build afterwards regardless)

from coreos-assembler.

dustymabe avatar dustymabe commented on September 17, 2024

Not entirely opposed to changing but...I like what we have now too.

yeah. i actually am not advocating for changing it right now. I think there are a lot of "paper cut" type things that we can address with a re-write/design exercise. This is mostly food for thought for when that happens.

from coreos-assembler.

ajeddeloh avatar ajeddeloh commented on September 17, 2024

Proposal:
Break the build process into as many small pieces as possible. For example init would be broken into getting the config and downloading anaconda. build would be broken into composing the ostree, building the disk image, and running gf-oemid. Each of these stages would have their own build script (or program) as well. Each stage would be responsible for knowing its inputs (including itself), knowing what other stage(s) generate those inputs, and caching its results. If you run gf-oemid without initializing it would call diskimage, which would run get-anaconda and ostree which would call init.

The hard part would be figuring out how to plumb various options to the stages. I.e. how do you pass an argument to init when you called gf-oemid.

This of course, is reinventing make, so it might be possible to actually just use make in conjunction with our scripts.

from coreos-assembler.

cgwalters avatar cgwalters commented on September 17, 2024

This of course, is reinventing make, so it might be possible to actually just use make in conjunction with our scripts.

May be interesting to look at https://github.com/apenwarr/redo
(this bit of the docs was making the rounds on social media recently; it has some inaccuracies but is still interesting)

from coreos-assembler.

dustymabe avatar dustymabe commented on September 17, 2024

stale.. closing

from coreos-assembler.

Related Issues (20)

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.