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

ci: Using Buildx as Docker builder #74

Merged
merged 11 commits into from
Sep 7, 2021
Merged

ci: Using Buildx as Docker builder #74

merged 11 commits into from
Sep 7, 2021

Conversation

qsliu2017
Copy link
Contributor

When I try to optimize apisix-dashboard's CI, I find that the build script in this repo is a reason for slow CI. As discuss in apache/apisix-dashboard#2072, using buildx can cache Docker layers and so speed up CI.

@CLAassistant
Copy link

CLAassistant commented Aug 23, 2021

CLA assistant check
All committers have signed the CLA.

@qsliu2017 qsliu2017 changed the title Using Buildx as Docker builder ci: Using Buildx as Docker builder Aug 23, 2021
Makefile Show resolved Hide resolved
@liuxiran
Copy link

CLA assistant check
All committers have signed the CLA.

Hi @qsliu2017 , you can follow the Instruction to sigh the CLA, thanks

@qsliu2017 qsliu2017 requested a review from imjoey August 26, 2021 02:52
Copy link
Contributor

@imjoey imjoey left a comment

Choose a reason for hiding this comment

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

@qsliu2017 Hi, sorry for being late. Could you please add a test case for this new parameter within the current CI before merging?

For example, in https://github.com/api7/apisix-build-tools/blob/master/.github/workflows/package-apisix-rpm-el7.yml, we could change make package type=rpm app=apisix version=2.7 checkout=release/2.7 image_base=centos image_tag=7 artifact=apisix-remote to make package type=rpm app=apisix version=2.7 checkout=release/2.7 image_base=centos image_tag=7 artifact=apisix-remote buildx=true to run the testing.

Your patience is much appreciated.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Makefile Outdated
### function for building
### $(1) is name
### $(2) is dockerfile filename
### $(3) is package type
### $(4) is code path
ifneq ($(buildx), "true")
Copy link
Contributor

@imjoey imjoey Sep 6, 2021

Choose a reason for hiding this comment

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

@qsliu2017 The https://github.com/api7/apisix-build-tools/pull/74/checks?check_run_id=3520664903#step:6:6 showed that the buildx=true didn't work as expected. So I guess you should change this to ifneq ($(buildx), true). Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

@qsliu2017 Hi, in plan we are going to prepare for a new release. Since your PR will significantly reduce the CI time, would you mind make the above changes ASAP? Much appreciated.

@imjoey
Copy link
Contributor

imjoey commented Sep 7, 2021

Copy link
Contributor

@imjoey imjoey left a comment

Choose a reason for hiding this comment

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

@qsliu2017 Really awesome PR. Thank you very much.

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.

4 participants