Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS ECR - Build failing due to required Docker Login Authentication (1 SP) #265

Open
Kourchenko opened this issue Nov 26, 2020 · 2 comments

Comments

@Kourchenko
Copy link
Collaborator

Docker now requires login to authenticate Docker Image requests.
The current build process requires that we SSH into any of the existing Production EC2 Instances, and run a command to login to Docker.

Task:
Please add an automated command to log in to Docker before the Docker Image is pulled from AWS ECR and so that the build process does not fail during automated builds.

@Kourchenko Kourchenko assigned Kourchenko and unassigned Kourchenko Nov 26, 2020
@Kourchenko
Copy link
Collaborator Author

Unassigning myself. Solution requires a good bit more work than initially proposed.

@csjoblom
Copy link
Contributor

csjoblom commented Jan 3, 2021

This can be done by setting the docker login credentials in the secrets on AWS

https://github.com/Hack4Eugene/SpeedUpAmerica/blob/master/buildspec.yml

This file needs the docker login added before docker build in the build section. You should be able to echo in the AWS vars that you set in codebuild or in your env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants