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 qemu and buildx for multi arch (arm64) #4552

Merged
merged 5 commits into from Aug 25, 2023

Conversation

hungran
Copy link
Contributor

@hungran hungran commented Aug 18, 2023

What this PR does / why we need it: ARM64 for piped and pipecd
I was tried from my local environment which using docker buildx to build linux/arm64 for only Piped and PipeCD image, and quick setup with helm pipecd and piped seem ok
not sure with piped-okd and launcher
Which issue(s) this PR fixes:

Fixes ##4544

Does this PR introduce a user-facing change?: N/A

  • How are users affected by this change: User might have option to run PipeCD and PipeD on arm64 node
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
@@ -54,6 +54,12 @@ jobs:
- name: Build web static
run: make build/web

# Setup QEMU and Buildx.
- name: Set up QEMU
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 #v2.0.0
Copy link
Contributor Author

@hungran hungran Aug 18, 2023

Choose a reason for hiding this comment

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

Action QEMU v2.0.0 is using node16
docker/setup-qemu-action#48

- name: Set up QEMU
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 #v2.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 #2.0.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above

@@ -54,6 +54,12 @@ jobs:
- name: Build web static
run: make build/web

# Setup QEMU and Buildx.
- name: Set up QEMU
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 #v2.0.0
Copy link
Contributor Author

@hungran hungran Aug 18, 2023

Choose a reason for hiding this comment

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

Action QEMU v2.0.0 is using node16
docker/setup-qemu-action#48

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.03% 🎉

Comparison is base (801a7c6) 29.91% compared to head (692b6d8) 29.95%.
Report is 3 commits behind head on master.

❗ Current head 692b6d8 differs from pull request most recent head c2e31de. Consider uploading reports for the commit c2e31de to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4552      +/-   ##
==========================================
+ Coverage   29.91%   29.95%   +0.03%     
==========================================
  Files         220      220              
  Lines       25873    25872       -1     
==========================================
+ Hits         7741     7749       +8     
+ Misses      17484    17476       -8     
+ Partials      648      647       -1     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hungran
Copy link
Contributor Author

hungran commented Aug 19, 2023

Launcher included!!!

Copy link
Member

@kentakozuka kentakozuka left a comment

Choose a reason for hiding this comment

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

What about these images?

  • piped-okd
  • launcher-okd
  • pipectl
  • helloworld

tags: ${{ env.GHCR }}/pipe-cd/pipecd:${{ env.PIPECD_VERSION }}

Copy link
Member

Choose a reason for hiding this comment

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

Remove an empty line.

tags: |
${{ env.GHCR }}/pipe-cd/piped:${{ env.PIPECD_VERSION }}
${{ env.GCR }}/pipecd/piped:${{ env.PIPECD_VERSION }}

Copy link
Member

Choose a reason for hiding this comment

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

Remove an empty line.

@hungran
Copy link
Contributor Author

hungran commented Aug 23, 2023

@kentakozuka thanks for your feedback
I could understand with pipectl and helloworld
I have same question too for the remain (...okd) @khanhtc1202

@khanhtc1202
Copy link
Member

All xxx-okd are for the openshift on-premise environment, so maybe someone want that on arm64 nodes as well, so let's support that too 👍

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
@hungran
Copy link
Contributor Author

hungran commented Aug 24, 2023

@kentakozuka @khanhtc1202
thanks for your support
added

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

LGreatTM 🙌

@khanhtc1202 khanhtc1202 merged commit 9f75446 into pipe-cd:master Aug 25, 2023
11 checks passed
tokku5552 pushed a commit to tokku5552/pipecd that referenced this pull request Aug 25, 2023
* add qemu and buildx for multi arch (arm64)

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add launcher multiple platform

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add okd, helloworld and pipectl arm64

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

---------

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
Signed-off-by: 徳田 真之介 <tokuda_shinnosuke@cyberagent.co.jp>
tokku5552 pushed a commit to tokku5552/pipecd that referenced this pull request Aug 25, 2023
* add qemu and buildx for multi arch (arm64)

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add launcher multiple platform

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add okd, helloworld and pipectl arm64

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

---------

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
Signed-off-by: 徳田 真之介 <tokuda_shinnosuke@cyberagent.co.jp>
moko-poi pushed a commit to moko-poi/pipecd that referenced this pull request Nov 3, 2023
* add qemu and buildx for multi arch (arm64)

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add launcher multiple platform

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

* add okd, helloworld and pipectl arm64

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>

---------

Signed-off-by: hungran <26101787+hungran@users.noreply.github.com>
Signed-off-by: moko-poi <mokopoi44@gmail.com>
@github-actions github-actions bot mentioned this pull request Dec 1, 2023
@github-actions github-actions bot mentioned this pull request Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants