amazon-ecr-credential-helper | Automatically gets credentials for Amazon ECR | AWS library
kandi X-RAY | amazon-ecr-credential-helper Summary
kandi X-RAY | amazon-ecr-credential-helper Summary
Automatically gets credentials for Amazon ECR on docker push/docker pull
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of amazon-ecr-credential-helper
amazon-ecr-credential-helper Key Features
amazon-ecr-credential-helper Examples and Code Snippets
Community Discussions
Trending Discussions on amazon-ecr-credential-helper
QUESTION
When using jib-gradle-plugin to build and push to AWS ECR, it requires me to install aws ecr credential helper otherwise the build complains "The system does not have docker-credential-ecr-login CLI".
I am wondering if there is a way to push to AWS ECR without installing the credential helper, or if it is possible to bundle a portable version of the credential helper in the repo?
The issues with installing the helper are:
- it requires the helper to be installed on every machine where the project needs to be built, hence making the build flow not as automated as I would like
- To install the aws ecr credential helper, it requires Docker to be installed. This feels a bit ironic because a large part of the point of Jib is that no Docker is needed on the host where the build happens, hence the build can be self-contained and portable.
I know this is not a Jib issue but I am just hoping whoever using Jib might have run into similar challenges and therefore can offer some insights of how to work around it.
...ANSWER
Answered 2020-Oct-09 at 21:27In the end, it all boils down to providing a simple username/password string pair to Jib. Once Jib retrieved the pair, Jib just passes through the username and password string literals to a server as-is without any processing at all.
Using a Docker credential helper is no different than providing this string pair through a CLI. Any credential helper will output a username and a password with the "get" command. For example with Google Container Registry,
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install amazon-ecr-credential-helper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page