darch icon indicating copy to clipboard operation
darch copied to clipboard

Question about prefixes and dependencies

Open phunni opened this issue 6 years ago • 1 comments

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?

phunni avatar Jan 01 '20 18:01 phunni

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.

pauldotknopf avatar Jan 04 '20 20:01 pauldotknopf