title: Jib: how to use amazon-ecr-credential-helper without installing it?
body: <p>When using <a href="https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin" rel="nofollow noreferrer">jib-gradle-plugin</a> to build and push to AWS ECR, it requires me to install <a href="https://github.com/awslabs/amazon-ecr-credential-helper" rel="nofollow noreferrer">aws ecr credential helper</a> otherwise the build complains <em>&quot;The system does not have docker-credential-ecr-login CLI&quot;</em>.</p>
  <p>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?</p>
  <p>The issues with installing the helper are:</p>
  <ol>
  <li>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</li>
  <li>To install the aws ecr credential helper, <strong>it requires Docker to be installed</strong>. 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.</li>
  </ol>
  <p>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.</p>