-
Notifications
You must be signed in to change notification settings - Fork 78
Local dependencies #227
Comments
Right now, acbuild doesn't support local dependencies. Once #222 gets merged it should be trivial to add though, so I'm hoping that the next release of acbuild will support what you want. As a temporary workaround there are two things you can do to get what you want, one's hacky and the other changes the semantics of your script, and neither are great. The hacky solution: When acbuild performs a run command it fetches and renders locally the dependencies it's missing. This process amounts to the following:
If you perform the rendering step yourself, acbuild will use the dependency from its local store instead of trying to fetch it. These are the steps to do this, assuming
This will need to be done after you've called The less hacky solution: A much simpler workaround is to simply start the second build on top of your dependency, so
This will produce a different image from what you were originally going for though, as instead of having a dependency on the first image your second image will include all of the files from the first image, and the manifest at the beginning of the build will not be empty but will instead contain the contents of the first image's manifest. |
Are the steps above for manually unpacking the local aci still expected to work? I tried:
This works however:
Is there an additional step needed? Edit: Oops, solved it, I missed out the "acbuild dep add [name of local aci]" step. Sorry! |
No worries! Also if you're going to be making any scripts based on this completely unsupported workaround, just a heads up that the path |
Seems this one can be closed, esp. once #316 is merged. |
Does acbuild support local dependencies?
I am trying to build two containers, one on top of the other, and would like to do it locally without having to host the image somewhere.
Here is what I am trying
But I get a
discovery failed
message:How would I do this locally?
The text was updated successfully, but these errors were encountered: