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

Is it possible to build images in parallel? #537

Open
nyonson opened this issue Aug 15, 2022 · 4 comments
Open

Is it possible to build images in parallel? #537

nyonson opened this issue Aug 15, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@nyonson
Copy link

nyonson commented Aug 15, 2022

Is your feature request related to a problem? Please describe.

I have a system which is comprised of many (~10) Go executable services. They are all built out of the same repo and we use a compose file for local development. Calling podman-compose up, it appears that the images are built sequentially. Is it possible to enable some sort of parallel build?

@nyonson nyonson added the enhancement New feature or request label Aug 15, 2022
@nyonson
Copy link
Author

nyonson commented Aug 15, 2022

Maybe this is satisfied by the podman build jobs flag?

@muayyad-alsadi
Copy link
Collaborator

podman build --jobs is used to build multi-stage images like this Dockerfile

FROM busybox
RUN sleep 3
RUN date
RUN touch /foo

FROM busybox
RUN sleep 3
RUN date
RUN touch /foo

FROM scratch
COPY --from=0 /foo /foo-0
COPY --from=1 /foo /foo-1

it's not designed to build multiple dockerfiles

I'll see what I can do.

@ikegentz
Copy link

Hello @muayyad-alsadi I have the same question, just curious if there are any updates on this? Thanks!

@alechirsch
Copy link

alechirsch commented May 8, 2023

In addition to this, might be the wrong issue but is related to building in parallel. I wrote my own script to build in parallel using podman build, it works except for when using the --ssh default flag. Podman seems to have trouble using an ssh agent on simultaneous builds getting this error

error serving agent: read unix /var/tmp/.buildah-ssh-sock3872979074/ssh_auth_sock->@: use of closed network connection

containers/buildah#4777

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

No branches or pull requests

4 participants