Support docker build from compose or bake files
complete
F
Frequent Jay
We have to maintain 2 copies of our build args: once for developers locally (via docker-compose.yml or a docker-bake.hcl) and then again for the harness pipeline. It would be very nice if harness provided a thin wrapper around the build and push stage templates which additionally took a compose/bake file argument, then all other properties optionall override the values from the file
Log In
ompragash
marked this post as
complete
ompragash
Thanks for the suggestion and for sharing the context of keeping your build arguments in sync between local development and Harness.
We now support using Docker Buildx Bake directly in Harness CI, allowing you to point your pipeline at an existing docker-compose.yml or Docker Bake file.hcl file and reuse the build configuration defined there, while still overriding values from the pipeline step when needed.
You can find the setup steps and examples here: https://developer.harness.io/docs/continuous-integration/use-ci/build-and-upload-artifacts/build-and-push/docker-buildx-bake/
Given this support, we will mark this request as Completed. If you notice any gaps between this functionality and what you had in mind, please reply here, and we can follow up or reopen the issue.
This post was marked as
in progress
N
Nofar Bluestein
Hey,
Thank you for sharing your feedback and the suggestion to support Docker builds from docker-compose.yml or docker-bake.hcl files in Harness.
We’ll take this request into consideration as we evolve our roadmap. In the meantime, have you explored using a Run step where you can run Buildx? Buildx natively supports docker-bake.hcl files, which could address your concern.
Thank you
Nofar Bluestein
CI product team
N
Nofar Bluestein
marked this post as
pending feedback