-
Notifications
You must be signed in to change notification settings - Fork 117
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
Use 2 and more containers for commands (steps) #357
Comments
@sgotti, I would appreciate if you will have time to take a look. Thanks! |
@kvaster Thanks.
This is true only if you have a single task. If you have multiple tasks (like a build matrix) it'll be better to clone one time only, save to workspace and restore in the other tasks. So to summarize and to split it in multiple parts:
There're multiple issues to face:
Possible solution:
I'll avoid adding a default definition of a "clone" container and making it the default for the clone step since it'll break current configs (a user can have its custom image with its binaries and this will change it) |
Thanks. I'll try to prepare changes. |
Currrently Agola uses only one container to run commands (steps) - the first one.
This container is also used for 'clone' step. This is uncomfortable, cause images you need usually are without 'git' command and you need to create separate pod and save cloned repository to workspace - wasting resources.
My proposition is to use separate container for 'clone' step - this will make guarantees that clone will not fail.
And we can go further - we may allow N containers for running commands. My proposition is to
I've made PR for this: #355
The text was updated successfully, but these errors were encountered: