[assets] set up docker login when docker base image is in ecr
See original GitHub issueWhen the base image in the Dockerfile is an image from a private ECR repository, run the docker login
command as part of asset creation during synthesis.
The command looks something like
aws ecr get-login-password | docker login --username AWS --password-stdin <ecr repo url>
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:16 (7 by maintainers)
Top Results From Across the Web
aws-cdk/aws-ecr-assets module - AWS Documentation
DOCKER is the default and you don't need to configure it on the asset itself. Use asset.imageUri to reference the image. It includes...
Read more >How do I make my Dockerfile use base images from ECR ...
The problem lies here: FROM node:14.19.0-alpine3.14 AS builder. You haven't specified a registry in this FROM statement.
Read more >docker login - Docker Documentation
Provide a password using STDIN ... To run the docker login command non-interactively, you can set the --password-stdin flag to provide...
Read more >How to Build and Push Docker Images to AWS ECR
How to Configure the Dockerfile · FROM : Sets the base image for further instructions. · WORKDIR : Adds source code from our...
Read more >Working with Docker Registries · Codefresh | Docs
How to push, pull and tag Docker images in Codefresh pipelines. ... don't want this behavior you can simply add the disable_push property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 Push, we need this… CDK Docker Assets are not usable without it for our team.
#10999 is open as far as I can tell.