podman-compose
podman-compose copied to clipboard
Is it possible to build images in parallel?
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?
Maybe this is satisfied by the podman build jobs flag?
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.
Hello @muayyad-alsadi I have the same question, just curious if there are any updates on this? Thanks!
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
https://github.com/containers/buildah/issues/4777