Skip to content

aws-ecr-assets: docker image build with no-cache option #20555

@cloneluke

Description

@cloneluke

Describe the feature

We use DockerImageAsset to build an ECR image via aws cdk. I would like to force a build using --no-cache, (we have side scripts that change so we do want the docker build to start completely fresh)
It doesn't look like there is a way to do this so I was thinking of opening a github feature request
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr_assets.DockerImageAsset.html

docker build --no-cache option: https://docs.docker.com/engine/reference/commandline/build/

Use Case

Able to force a full rebuild due to changes not detected by docker.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.22.0

Environment details (OS name and version, etc.)

windows client, debian container

Metadata

Metadata

Labels

@aws-cdk/aws-ecr-assetsRelated to AWS CDK Docker Image Assetscause/not-a-bugNot a bug (might still be a documentation issue, might still need work)feature-requestA feature should be added or improved.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions