Is there any work done to support docker-compose build ?
@shin-
Yup, it's on my radar: https://github.com/docker/compose/issues/883#issuecomment-407467051
I hope to take a closer look at what it would take after the 1.23 release.
Slightly off-topic, but is there plan to support build in docker stack deploy?
Is this the "official" issue to follow? Really looking forward for BuildKit support in docker-compose :)
@paslandau Probably this should be tracked in docker-compose repo
@AkihiroSuda
The "if not, is there another official issue to follow?" was kinda implied ;)
Given that buildkit support in docker-py looks like it's a long ways off (https://github.com/docker/docker-py/issues/2230) and that docker-cli / docker-py differences have caused issues and continue to do so (https://github.com/docker/compose/issues/883), is invoking the CLI to build images instead of using python an option?
https://github.com/docker/compose/pull/6865 is merged
Building compose with buildkit is also available with docker buildx bake https://github.com/docker/buildx#buildx-bake-options-target
for future reference
for BuildKit support use DOCKER_BUILDKIT=1 and COMPOSE_DOCKER_CLI_BUILD=1
Most helpful comment
PR: https://github.com/docker/compose/pull/6584