Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a tag when pulling images so we only pull a single image #15967

Merged
merged 1 commit into from Aug 27, 2017

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Aug 24, 2017

fixes #15954

@openshift-merge-robot openshift-merge-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 24, 2017
@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 24, 2017
@bparees
Copy link
Contributor Author

bparees commented Aug 24, 2017

@csrwng ptal

@@ -110,8 +110,15 @@ func pullImage(client DockerClient, name string, authConfig docker.AuthConfigura
logProgress := func(s string) {
glog.V(0).Infof("%s", s)
}
tag := "latest"
Copy link
Member

Choose a reason for hiding this comment

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

make this const (maybe there is already const in image api :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mfojtik is there a parser for docker pull specs that will give me the tag? @csrwng thought there was but we didn't immediatley find it. ParseDockerImageReference isn't as clean as i'd like.

Copy link
Member

Choose a reason for hiding this comment

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

i think ParseDockerImageReference giving you DockerImageReference that has Tag is your best bet :-)

Copy link
Member

@mfojtik mfojtik Aug 24, 2017

Choose a reason for hiding this comment

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

eventually reference.ParseNamedDockerImageReference(spec) which is what ParseDockerImageReference use internally.

Or github.com/docker/distribution/reference.ParseNamed() if you want to be hard-core

@gabemontero gabemontero removed their assignment Aug 24, 2017
@openshift-merge-robot openshift-merge-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 24, 2017
@bparees
Copy link
Contributor Author

bparees commented Aug 24, 2017

@smarterclayton since you were aware of this pulling behavior, ptal.
@csrwng ready for a second round from you as well.

@csrwng
Copy link
Contributor

csrwng commented Aug 24, 2017

lgtm

@bparees
Copy link
Contributor Author

bparees commented Aug 24, 2017

@smarterclayton updated.

@bparees
Copy link
Contributor Author

bparees commented Aug 25, 2017

/retest

@bparees
Copy link
Contributor Author

bparees commented Aug 25, 2017

@jim-minter ptal

@jim-minter
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, jim-minter

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@bparees
Copy link
Contributor Author

bparees commented Aug 26, 2017 via email

@bparees
Copy link
Contributor Author

bparees commented Aug 26, 2017 via email

@bparees
Copy link
Contributor Author

bparees commented Aug 26, 2017

/retest

@bparees
Copy link
Contributor Author

bparees commented Aug 26, 2017 via email

@openshift-merge-robot
Copy link
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 15967, 15990)

@openshift-merge-robot openshift-merge-robot merged commit 4b03292 into openshift:master Aug 27, 2017
@bparees bparees deleted the dockerpull branch August 28, 2017 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

s2i image build pull too many/wrong source images
8 participants