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

Improve docker build time when cache misses #239

Open
felipecrs opened this issue Mar 29, 2023 · 3 comments
Open

Improve docker build time when cache misses #239

felipecrs opened this issue Mar 29, 2023 · 3 comments

Comments

@felipecrs
Copy link
Collaborator

felipecrs commented Mar 29, 2023

After #228, build started taking more than 3 hours instead of 30 minutes. Build now takes 1 hour and 30 minutes.

The reason why I refactored the docker build was to allow users to have a single tag to pull from regardless of the architecture, which is prettier and simpler.

I tried to improve with #236, but it apparently caused #238.

For now I will revert #236, so cached builds will still be quick, but non-cached builds will still take very long.

There is one idea on docker/build-push-action#846 on how to probably fix this, but I don't like it much.

I will leave this issue open in case someone has some idea, or even myself.

@felipecrs
Copy link
Collaborator Author

One idea to improve, for example, is to use cross-platform build of Asterisk source code.

I don't know if its Makefile supports it, but if we can build Asterisk for arm64 on amd64 without having to use binfmt/qemu for that, it would speed up the build by a lot.

@felipecrs
Copy link
Collaborator Author

I did some research and cross compilation of Asterisk is possible.

@felipecrs
Copy link
Collaborator Author

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

No branches or pull requests

1 participant