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

refact(build): make the docker images configurable #1680

Merged
merged 2 commits into from
May 7, 2020
Merged

refact(build): make the docker images configurable #1680

merged 2 commits into from
May 7, 2020

Conversation

kmova
Copy link
Contributor

@kmova kmova commented May 4, 2020

Why is this PR required? What issue does it fix?:
This commit enables users to build images from forked repos.

What this PR does?:
This commit will help to customize docker images via environment variables:

  • The following ENV help specify custom docker build args
  • The following ENV allows Travis to specify custom image org
    • IMAGE_ORG (default: openebs )
  • The following ENV will allow specifying an extra tag suffix
    • TAG_SUFFIX ( default: none )

Does this PR require any upgrade changes?:
No

If the changes in this PR are manually verified, list down the scenarios covered::
Travis will verify the building of images.

Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

  • Replace HUB_USER with IMAGE_ORG
  • Tag the downstream based on the repo on which builds are triggered

Signed-off-by: kmova kiran.mova@mayadata.io

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

@kmova kmova requested a review from shubham14bajpai May 4, 2020 18:19
This commit will help customizing docker images via environment variables:
- The following ENV help specify custom docker build args
  - DBUILD_SITE_URL ( default: https://openebs.io )
  - DBUILD_REPO_URL ( default: https://github.com/openebs/maya )
- The following ENV allows Travis to specify custom image org
  - IMAGE_ORG (default: openebs )
- The following ENV will allow specifying an extra tag suffix
  - TAG_SUFFIX ( default: none )

Notes:
- Replace HUB_USER with IMAGE_ORG
- Tag the downstream based on the repo on which builds are triggered

Signed-off-by: kmova <kiran.mova@mayadata.io>
@kmova kmova requested a review from prateekpandey14 May 6, 2020 17:59
Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@shubham14bajpai shubham14bajpai left a comment

Choose a reason for hiding this comment

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

lgtm

@kmova kmova merged commit 235fd07 into openebs-archive:master May 7, 2020
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