-
Notifications
You must be signed in to change notification settings - Fork 0
As a buildpack author, I must specify run images in my builder.toml #47
Comments
@sclevine Is it assumed that the "canonical run image" is the one specified in config.toml ("image" field, alongside locally-defined mirrors)? Wonder if the order: canonical, locally-defined mirrors, mirrors from builder would make more sense or be more similar to current functionality. cc: @ekcasey |
The canonical run image is the run image reference that's used as the ID to join the entries in The locally-defined mirrors should override this value if they use the same registry. Not sure about the builder-defined values, but I think those should go first for consistency with the other mirrors. |
@sclevine, @ekcasey It turns out that because #38 was already played, the search order logic is already in place. However, it's actually different from what this story says (it has the canonical image in the middle, rather than being last):
Do we feel strongly enough for me to make the change? Leave as is? Or change as part of another story (or perhaps reject #38)? |
[buildpacks/roadmap#47] Signed-off-by: Andrew Meyer <ameyer@pivotal.io>
re: search order logic, I think we should keep the canonical image last, as part of this story. Image this scenario:
re: CLI stack commands, agree that we should put off until #48 |
@sclevine Spoke with the team this morning and we decided to leave the order as is for now. We can chat more when you're back though. |
This did not pass acceptance for the following reasons:
We believe all of the builder.toml arguments were provided. |
@ameyer-pivotal You mentioned during IPM that you wanted to see some of the files on my local machine to help debug the above error. Could you specify what you need? I was planning on providing the builder.toml, buildpack toml, and config.toml I used. |
@mgibson1121 That should be good, thanks! |
@ameyer-pivotal Github won't let me upload toml files, so made copies and changed them to txt. I'm pretty sure these are the ones Stephen and I used, but let me know if something seems off. |
@sclevine I accepted validation on the mandatory fields. The behavior is if one required field is left out, an error specifying that field is required is thrown. If more than one required field is not included, the error only displays that the stack id is required. This behavior is acceptable to me in the absence of more defined AC. Additionally, weren't able to reproduce the panic on my machine. Accepting the story. |
@djoyahoy The panic appears to be due to a missing length check here: https://github.com/buildpack/pack/blob/master/config/config.go#L235 |
@mgibson1121 @sclevine Should we reject this then? |
@ameyer-pivotal My personal opinion is that we should only reject it if this bug was introduced by work on this story. If not, we should pass it and file a bug ticket. Up to @sclevine, though. |
@mgibson1121 I agree that a separate story seems appropriate here. Can you create a new bug story and reference Stephen's comment: #47 (comment) |
Bug ticket split off from this ticket in #52. Will keep this story in the 0.1.0 release column. |
Acceptance Criteria
When I run
pack create-builder my-builder -b ./builder.toml
Then
builder.toml
must contain the following mandatory fields for the command to succeed:And
builder.toml
may contain the following optional field:Such That During
pack build
, run image mirrors are considered in the following order:[[run-images]]
in config.toml (see replaceconfigure-builder
withconfigure-run-image
#38)And The
--stack
argument topack create-builder
is no longer acceptedNotes
[[stacks]]
list in config.toml.The text was updated successfully, but these errors were encountered: