[aws-ecr-assets] DockerImageAsset: Suppress docker build output #29555
Labels
@aws-cdk/aws-ecr-assets
Related to AWS CDK Docker Image Assets
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
I am using
ecr_assets.DockerImageAsset
to build a docker image from a Dockerfile. I would like a way to suppress the output of this. The output from docker interferes with the normal out of CDK, below example of how it looks. Ugly and more importantly confusing.It would be nice, if either one could disable it, our somehow guarantee that they don't interfere, build the image and then once done and all the logs are out, start with the cdk output.
Use Case
I just think it would be better if one could suppress the output and just have the regular CDK output. It's going to be easier when debugging, and if I need to debug the build image process I could temporarily remove the flag.
Proposed Solution
docker build
has a flag that suppresses outputs,-q --quite
. A solution similar to howcache_disabled
is implemented.An optional
boolean
parameter that adds-q
flag to thedocker build
command.Other Information
No response
Acknowledgements
CDK version used
2.130.0
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: