-
Notifications
You must be signed in to change notification settings - Fork 98
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
[question] what makes ansible-builder v3 takes so long as compared to ansible-builder v1 ? #626
Comments
In most cases it should be comparable or faster than 1.x, so I'm curious as well... I'd guess something's going on with your build cache or package management, because we actually reduced several redundant package installation steps from 1.x. Can you share your EE definition? |
Keep in mind that processing of |
Yeah, if even basic no-op things like |
... as a data point, the following EE def builds for me via
version: 3
images:
base_image:
# completely vanilla image, works with most anything RHELish (Fedora, CentOS Stream)
name: registry.access.redhat.com/ubi9/ubi:latest
dependencies:
# install and use a bleeding-edge Python!
python_interpreter:
# (optional) provide the name of an OS package to install
package_system: python3.11
# (optional) provide the path of the Python interpreter to use for everything else.
# defaults to /usr/bin/python3; we'll do some sanity checking with this later...
python_path: /usr/bin/python3.11
ansible_core:
# anything valid to `pip install` - a git ref, whatever
package_pip: ansible-core<2.16
ansible_runner:
package_pip: ansible-runner
galaxy:
collections:
- ansible.utils |
thanks for your answers.
We use this for different EE creations. To illustrate the change, which occurred 3 weeks ago, we were building in 4 to 13mns with ansible-builder v1 (but the Container file was pre-generated and a podman build cmd was used.) Now with v3, using the same CI, but using a single cmd BTW
I think both issues must stem from the fact that |
I can't explain why it now takes me 45~50 mns for a new build with juste 10 python deps 3 collections and python 3.11.
It use to take minutes only with ansible-builder 1.0
It's not that there are any step that takes very long but there seems to be so many steps and each seems to take at least 10s, even to process an ARG or run the simplest of RUN command.
The text was updated successfully, but these errors were encountered: