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

Bring image building logic into the Bash library #14534

Merged

Conversation

stevekuznetsov
Copy link
Contributor

Previously, useful logic for building images like the choice to tag
images with :latest as well as :sha, automatic re-try logic, git
cleanup, nice output printing, etc, were all local to the top-level
hack/build-images.sh entrypoint. There's no reason for that to be the
case and as other people find themselves needing those features, we
should just expose all of that with os::build::image.

This is not an entirely backwards compatible patch. The following
changes were made:

  • support for explicitly providing a Dockerfile was removed from the
    signature of os::build::image as this was an entirely unused
    feature.
  • the order of arguments was re-arranged so that all of the image build
    utilites were in alignment -- first the tag, then the dir, etc.

Signed-off-by: Steve Kuznetsov skuznets@redhat.com


Depends on #14435

/cc @smarterclayton PTAL last commit

[test]

@smarterclayton
Copy link
Contributor

smarterclayton commented Jun 8, 2017 via email

@stevekuznetsov
Copy link
Contributor Author

Are you sure dockerfile support isn't used by centos paas sig?

No. I'll check.

@stevekuznetsov stevekuznetsov force-pushed the skuznets/cleanup-image-bash branch from e3d5028 to 5b27936 Compare June 9, 2017 16:35
@openshift openshift deleted a comment from openshift-bot Jun 9, 2017
@stevekuznetsov stevekuznetsov force-pushed the skuznets/cleanup-image-bash branch from 5b27936 to 8022297 Compare June 9, 2017 17:30
@stevekuznetsov
Copy link
Contributor Author

@smarterclayton confirmed they do not use them

@smarterclayton
Copy link
Contributor

smarterclayton commented Jun 9, 2017 via email

@stevekuznetsov stevekuznetsov force-pushed the skuznets/cleanup-image-bash branch 4 times, most recently from b2bf38e to 896880b Compare June 12, 2017 14:24
@openshift openshift deleted a comment from openshift-bot Jun 12, 2017
@openshift openshift deleted a comment from openshift-bot Jun 12, 2017
@stevekuznetsov stevekuznetsov force-pushed the skuznets/cleanup-image-bash branch from 896880b to ec7e1c2 Compare June 13, 2017 13:54
Previously, useful logic for building images like the choice to tag
images with `:latest` as well as `:sha`, automatic re-try logic, `git`
cleanup, nice output printing, etc, were all local to the top-level
`hack/build-images.sh` entrypoint. There's no reason for that to be the
case and as other people find themselves needing those features, we
should just expose all of that with `os::build::image`.

This is not an entirely backwards compatible patch. The following
changes were made:

 - support for explicitly providing a Dockerfile was removed from the
   signature of `os::build::image` as this was an entirely unused
   feature.
 - the order of arguments was re-arranged so that all of the image build
   utilites were in alignment -- first the tag, then the dir, etc.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@stevekuznetsov stevekuznetsov force-pushed the skuznets/cleanup-image-bash branch from ec7e1c2 to 9753bf5 Compare June 13, 2017 16:38
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 9753bf5

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2190/) (Base Commit: a5b8471)

@stevekuznetsov
Copy link
Contributor Author

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 13, 2017

continuous-integration/openshift-jenkins/merge Waiting: You are in the build queue at position: 8

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 9753bf5

@smarterclayton smarterclayton merged commit 250f921 into openshift:master Jun 15, 2017
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.

3 participants