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

Add s390x support with docker buildx #251

Conversation

shahidhs-ibm
Copy link

Signed-off-by: Shahid Shaikh [email protected]

What does this PR do?

Add docker buildx support to GitHub actions. Currently adding support for amd64 and s390x image build which can be expanded later to other architectures and multi-arch images can be pushed to quay.io registry.

What issues does this PR fix or reference?

This PR is part of this initiative.

@che-bot
Copy link
Contributor

che-bot commented May 13, 2020

Can one of the admins verify this patch?

1 similar comment
@che-bot
Copy link
Contributor

che-bot commented May 13, 2020

Can one of the admins verify this patch?

uses: actions/checkout@v2
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain why do we need buildx ?

Copy link
Contributor

Choose a reason for hiding this comment

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

buildx is an experimental docker client tool for multiarch builds on a single arch.

@shahidhs-ibm can you talk to your colleagues about ppc64le support? It would be great to get a single PR for both Z and Power...

Copy link

Choose a reason for hiding this comment

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

FYI, We've use buildx on z for other open source project and seems to be working quite well. Regarding power, it's done by different team, probably won't PR both together, testing on platform could face different problem too.

Copy link
Contributor

Choose a reason for hiding this comment

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

fair point -- I'm learning that vm and hardware access is a different challenge / schedule for each platform, with Z arriving before P, it seems.

@tolusha
Copy link
Contributor

tolusha commented May 14, 2020

/cc
@benoitf @rhopp

@benoitf
Copy link
Contributor

benoitf commented May 14, 2020

Hi, this github action is like a PR check so it will just try to check if it can be build against another linux flavor but it will not publish the image
It's done by https://github.com/eclipse/che-operator/blob/master/cico_functions.sh#L75

So I think cico job needs to be removed and replaced by a "build-and-publish" Github Action

@shahidhs-ibm
Copy link
Author

@benoitf I believe this PR will update build-test-publish mechanism and present CI. Can you please guide on how we can approach to the required changes and what will be the action items on us/community ?

@shahidhs-ibm shahidhs-ibm force-pushed the s390x_multiarch_support branch from 7703178 to 73050e5 Compare June 19, 2020 12:30
@benoitf
Copy link
Contributor

benoitf commented Jul 30, 2020

it may not be so useful as it's just for PR checks

@shahidhs-ibm
Copy link
Author

it may not be so useful as it's just for PR checks

That's right. We have created another PR#307 which will enable multi-arch support to che-operator images. This PR is still in draft state as we are waiting for any progress on PR#109 which has similar changes and it is candidate for testing the multi-arch changes.

@nickboldt
Copy link
Contributor

Please rebase this PR.

@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: benoitf, shahidhs-ibm
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

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

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@shahidhs-ibm shahidhs-ibm force-pushed the s390x_multiarch_support branch 2 times, most recently from 8965864 to 1c65993 Compare December 15, 2020 12:35
@shahidhs-ibm shahidhs-ibm force-pushed the s390x_multiarch_support branch from 60ecafb to c47d94b Compare December 16, 2020 06:31
@shahidhs-ibm
Copy link
Author

Please rebase this PR.

@nickboldt Done. Also made some changes in earlier PR'ed code to make use of Docker V2 GitHub Action.

@shahidhs-ibm
Copy link
Author

@nickboldt Any update?

@tolusha
Copy link
Contributor

tolusha commented Jan 15, 2021

https://quay.io/repository/eclipse/che-operator?tag=latest&tab=tags
quay.io/eclipse/che-operator:nightly is already built for different platforms.
Remaining task is to build and push stable version.

@tolusha
Copy link
Contributor

tolusha commented Jan 15, 2021

eclipse-che/che#18809
Planned for the next sprint which starts next week.
I think we can close this PR.

@tolusha tolusha closed this Jan 15, 2021
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.

7 participants