You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem you're trying to solve
A lot of issues and pull requests have been opened and asking to improve the build capabilities of the default implementation (Docker Compose).
We already have a bunch of proposals opened and pending in this specification to address some of those requests.
The objective of this issue is to aggregate the existing proposals in one place to facilitate tracking of the implementation progression.
Describe the solution you'd like
In the following section we'll define all the fields we want to add to the specification with links to
description of the property or link to the existing proposal (if exists)
Proposal Pull Request link
Compose-Go PR link
Compose PR link (optional)
When working on a PR (proposal, compose-go or compose) don't forget to reference this issue
builder-options: property to allow usage of builder specific build options, for example named context and output property of BuildX content unspecified by the Compose specification, can be used to enable custom builder features.
proposal PR
Compose-Go PR
Additional context
Example using all this modifications
services:
frontend:
image: awesome/webapp:bar # image name to be build with a default tag name "bar"build:
context: .dockerfile: ./Dockerfileargs:
GITHUB_TOKEN: ${GITHUB_TOKEN}tags: # define tags that should be associated to the image built
- ct-addon:foo
- ct-addon:alpplatforms: # define the platform targeted by the build
- linux/amd64
- linux/arm64cache-from:
- user/app:cache
- type=local,src=path/to/cachecache-to: type=local,dest=path/to/cache # define the cache export destinationpull: true # force pulling base and intermediate images use during the buildsecrets: # runtime secrets section
- defaultsecretaws:
image: ct-fake-aws:barbuild:
dockerfile: ./aws.Dockerfilessh: default # mount the default ssh agentsecrets: # build secrets section
- buildsecretplatforms: linux/arm64no-cache: true # disabling caching for the buid processbuilder-options: # property to pass custom options to the builder
- output: type=docker
- no-cache-filter:
secrets: # runtime secrets section
- defaultsecretsecrets:
defaultsecret:
file: ./defaultsecretbuildsecret:
file: ./secret
The text was updated successfully, but these errors were encountered:
What is the problem you're trying to solve
A lot of issues and pull requests have been opened and asking to improve the build capabilities of the default implementation (Docker Compose).
We already have a bunch of proposals opened and pending in this specification to address some of those requests.
The objective of this issue is to aggregate the existing proposals in one place to facilitate tracking of the implementation progression.
Describe the solution you'd like
In the following section we'll define all the fields we want to add to the specification with links to
When working on a PR (proposal, compose-go or compose) don't forget to reference this issue
List of the property to add
no_cache
andpull
to force a full rebuild #232platform
field definition #197always attempt to pull a newer version of the images used during the build
booleanno_cache
andpull
to force a full rebuild #232SSH agent socket or keys to expose to the build, if no value provided should use the SSH_AUTH_SOCK env variable
string , see also Add platform and other properties to service.build #120list of the tags associated to the final build image
array, see alsoproperty to allow usage of builder specific build options, for example named context and output property of BuildX
content unspecified by the Compose specification, can be used to enable custom builder features.Additional context
Example using all this modifications
The text was updated successfully, but these errors were encountered: