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

fix(ci): speed up docker build #9800

Merged
merged 1 commit into from
Apr 6, 2023
Merged

fix(ci): speed up docker build #9800

merged 1 commit into from
Apr 6, 2023

Conversation

lidel
Copy link
Member

@lidel lidel commented Apr 6, 2023

Building docker images in this repo takes ~1h:

2023-04-06_14-28

This PR is doing two things (iiuc -- please verify my assumptions 🙏 ):

  • speed up arm builds by allowing cross-comp from go instead of slow QEMU
  • take a stab at caching buildx layers, without infinite growth
  • works with both docker buildx build and the regular docker build

This fix was already applied in ipfs-inactive/bifrost-gateway@14cfa48 and seems to reduce docker build times there from 20m to 3m ❣️ :

2023-04-06_14-23

cc @galargh @laurentsenta @guseggert

@lidel lidel requested review from a team, laurentsenta and guseggert April 6, 2023 12:25
@lidel lidel added the P1 High: Likely tackled by core team if no one steps up label Apr 6, 2023
trying two things:
- speed up arm build by allowing cross-comp from go instead of slow QEMU
- take a stab at caching buildx layers, without infinite growth

This fix was laready applied in
ipfs-inactive/bifrost-gateway@14cfa48
and reduced build time from 20m to 3m.
@lidel lidel force-pushed the fix/docker-image-build-time branch from f331979 to 790a548 Compare April 6, 2023 13:46
Copy link
Contributor

@galargh galargh left a comment

Choose a reason for hiding this comment

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

🚅

@lidel lidel merged commit 6f08cde into master Apr 6, 2023
@lidel lidel deleted the fix/docker-image-build-time branch April 6, 2023 18:53
@lidel
Copy link
Member Author

lidel commented Apr 6, 2023

Wow, after merging this PR docker build time decreased from ~50-40m to ~6m 🤯

2023-04-06_21-36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High: Likely tackled by core team if no one steps up
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants