-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(build): support for multi arch container image #128
Conversation
abcecb2
to
5476cdf
Compare
Codecov Report
@@ Coverage Diff @@
## master #128 +/- ##
=======================================
Coverage 42.47% 42.47%
=======================================
Files 12 12
Lines 412 412
=======================================
Hits 175 175
Misses 224 224
Partials 13 13 Continue to review full report at Codecov.
|
e414b75
to
99ed8ce
Compare
99ed8ce
to
1b029a3
Compare
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
1b029a3
to
099d5c0
Compare
Makefile.buildx.mk
Outdated
|
||
# default list of platforms for which multiarch image is built | ||
ifeq (${PLATFORMS}, ) | ||
export PLATFORMS="linux/amd64,linux/arm64,linux/ppc64le" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubham14bajpai , for csi-driver also do we have issue with arm/v7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the libcstor builds we will not be able to test arm/v7 for any other cstor image so waiting on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added arm/v7
@@ -34,7 +34,7 @@ else | |||
fi | |||
|
|||
# Set BUILDMETA based on travis tag | |||
if [[ -n "$TRAVIS_TAG" ]] && [[ $TRAVIS_TAG != *"RC"* ]]; then | |||
if [[ -n "$RELEASE_TAG" ]] && [[ $RELEASE_TAG != *"RC"* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
||
RUN make buildx.csi-driver | ||
|
||
FROM ubuntu:16.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prateekpandey14 Is it necessary to use ubuntu image? Can we switch to alpine? I am thinking we should slim down the images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is tricky ..using alpine can cause some other issues and install pkg availabilty like xfs etc, i may try with ubuntu latest release which is more trimmed container images as compared to 16.04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prateekpandey14 Have given some comments.
ad8c8f2
to
5b205fd
Compare
@prateekpandey14 Changes looks good. Can you check why travis failed? Also the pull request action was not executed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
.github/workflows/build.yml
Outdated
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} |
.github/workflows/release.yml
Outdated
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prateekpandey14 A change is required for the docker credential env.
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
5b205fd
to
38a54bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: prateekpandey14 prateek.pandey@mayadata.io
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
documentation
tagrequires-upgrade
tag