Skip to content

Flag to skip all pull errors when pulling images - #2032

Merged
mnowster merged 1 commit into
masterfrom
unknown repository
Sep 21, 2015
Merged

mnowster merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Sep 11, 2015

Copy link
Copy Markdown

Closes #2028

Comment thread compose/cli/main.py Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need an if/else here, just skip_missing=options.get('--skip-missing')

@ghost

ghost commented Sep 11, 2015

Copy link
Copy Markdown
Author

I've integrated @dnephin's comments. PTAL when you get chance.

@dnephin dnephin self-assigned this Sep 11, 2015
@ghost ghost closed this Sep 13, 2015
@ghost ghost reopened this Sep 13, 2015
@dnephin

dnephin commented Sep 16, 2015

Copy link
Copy Markdown

LGTM, thanks!

Comment thread compose/cli/main.py Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, I think we could be a little more informative here. Maybe something like "Continue pulling images, even if one fails to pull".

I'll let others comment on wording.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like your wording. But the flag it self should be called --skip-failed or something like this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @dnephin here around the messaging. A suggestion; how about Continue pulling images, irrespective of failures

The language we use here to describe this flag is really important to be clear. We don't know that images are missing. I would prefer --continue-on-error

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd also be good to get @moxiegirl 's opinion on this wording, as I think it is a little tricky to convey clearly what we want to the user.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it seems like you aren't really skipping as much as ignoring.

--ignore-pull-failures Builds what it can and ignores images with pull failures.

I also like --continue-on-error if it really continues everything regardless of error...but if they operation can error out it isn't really true.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @moxiegirl , that is a very good point, I think your suggestion is clearer and more accurate.

@villlem are you ok to update the flag and message in line with @moxiegirl 's wording please?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. I also update parameter names to be consistent. Is there somethig else, some other doc that needs to be updated as well?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is the pull command docs file that'll need updating with the new option as well. I think that's it but I'll double check now.

https://github.com/docker/compose/blob/master/docs/reference/pull.md

Thank you for your work on this, it's appreciated.

@dnephin dnephin added this to the 1.5.0 milestone Sep 18, 2015
@ghost

ghost commented Sep 21, 2015

Copy link
Copy Markdown
Author

I've updated flags, docs and params names with @moxiegirl's wording. PTAL when you get chance. Thank you for all your comments. Let me know if there is something I should do.

@mnowster

Copy link
Copy Markdown

LGTM. Thanks for your work @villlem

mnowster added a commit that referenced this pull request Sep 21, 2015
Flag to skip all pull errors when pulling images
@mnowster
mnowster merged commit b9252aa into docker:master Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants