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

Shorten the build-time for docker builds #1140

Closed
whotwagner opened this issue Jun 16, 2022 · 2 comments · Fixed by #1296
Closed

Shorten the build-time for docker builds #1140

whotwagner opened this issue Jun 16, 2022 · 2 comments · Fixed by #1296
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@whotwagner
Copy link
Contributor

Currently the complete docker image is build at once. This takes a lot of time for each build. We could shorten the build time by inheriting from a pre-built image.

@whotwagner whotwagner added the enhancement New feature or request label Jun 16, 2022
@whotwagner whotwagner added this to the 2.6.0 milestone Jun 16, 2022
@whotwagner whotwagner self-assigned this Jun 16, 2022
@ernstleierzopf
Copy link
Contributor

As I have been working on the docker configurations on the weekend, I have seen that updating the system and installing some new packages took quite a long time. However, I am not sure how to solve this as pretty much any time we create an prebuilt Image, the packages get outdated.

Also the fact that all of these builds are parallelized increases the build time. I assume the Jenkins Machine is not having enough cores to handle 12-14 concurrent processes, where about half of them are heavy build tasks.

Still the "Available Configs" test takes much longer.

I also noticed that using caches does not work with the builds if you update anything like for example the anisble-project. These changes do not get caught and are simply skipped when using caches.

@ernstleierzopf
Copy link
Contributor

However, I have another suggestion which might reduce the total build time drastically.
I feel comfortable to only run the docker build tests in development and main. Package-wise we do not have so many breaking changes with every pull request. Errors in the development branch could be fixed via hotfixes.

In addition to that, I could parallelize runConfAvailableTest by accepting an argument with the config which has to be tested.
This would reduce the build time for pull requests by about 8 minutes I think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants