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

dockerbuild pulls all images rather than :latest #9104

Merged
merged 1 commit into from
Jun 2, 2016

Conversation

smarterclayton
Copy link
Contributor

A FROM foo/bar in a Dockerfile will result in docker pulling all tags in
foo/bar, rather than just foo/bar:latest. Default to :latest in the
dockerbuilder.

@mfojtik review please, hit this while fixing other things

A FROM foo/bar in a Dockerfile will result in docker pulling all tags in
foo/bar, rather than just foo/bar:latest.  Default to :latest in the
dockerbuilder.
@smarterclayton
Copy link
Contributor Author

@csrwng as well

@smarterclayton
Copy link
Contributor Author

[test]

repository, _ := docker.ParseRepositoryTag(from)
repository, tag := docker.ParseRepositoryTag(from)
if len(tag) == 0 {
tag = "latest"
Copy link
Contributor

Choose a reason for hiding this comment

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

imageapi.DefaultImageTag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This package can't take any dependencies on other OpenShift code, because we're going to move this out of the repo.

Copy link
Contributor

Choose a reason for hiding this comment

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

sgtm

@csrwng
Copy link
Contributor

csrwng commented Jun 2, 2016

apart from minor suggestion, LGTM

@smarterclayton
Copy link
Contributor Author

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 020d51f

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4393/)

@smarterclayton
Copy link
Contributor Author

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 2, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4393/) (Image: devenv-rhel7_4305)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 020d51f

@mfojtik
Copy link
Contributor

mfojtik commented Jun 2, 2016

lgtm

@openshift-bot openshift-bot merged commit d8db748 into openshift:master Jun 2, 2016
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.

4 participants