godarch / darch

A tool for building and booting stateless and immutable images, bare metal.
https://godarch.com/
MIT License
832 stars 32 forks source link

Question about prefixes and dependencies #45

Open phunni opened 4 years ago

phunni commented 4 years ago

If I build an image called foo and specify the prefix bar:

darch recipes build -p "bar/" foo

and that image has a dependency based on another image called "base" - does the base need to also have the prefix "bar/" in order for it to build, or can darch just see that we mean "base" and figure it out from there? What if we're pulling images? I assume that an image that's been uploaded is complete and contains everything - including everything from it's parent images? If so, then, presumably, just pulling the "bar/foo" image onto a target machine will do the trick?

pauldotknopf commented 4 years ago

The prefix is appended to each dependency needed to build automatically.

Pulling images has no concept of prefix.

If so, then, presumably, just pulling the "bar/foo" image onto a target machine will do the trick?

Yup.

I agree it's confusing, it could have been done better. Hindsight is 2020.