Hack4Eugene / SpeedUpAmerica

Crowd-sourced internet speed tests using M-Lab data and user tests on a website, with charts, maps, and raw data downloads.
MIT License
25 stars 8 forks source link

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

Open Kourchenko opened 3 years ago

Kourchenko commented 3 years ago

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 commented 3 years ago

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

csjoblom commented 3 years ago

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.