woodjme / autoscaling-ec2-gitlab-runners-fargate

Autoscaling EC2 GitLab Runners Spawned by Fargate
MIT License
19 stars 7 forks source link

Support AWS Elastic Container Registry (ECR) #16

Open kiesel opened 4 years ago

kiesel commented 4 years ago

Two usecases here:

  1. Use a private ECR to fetch images denoted by image: ... in a .gitlab-ci.yml file. To fetch these images, the docker client must authenticate to ECR via AWS_ACCESS_KEY_ID et al. or use a credentials helper (https://github.com/awslabs/amazon-ecr-credential-helper).

  2. Build docker images and push them into a ECR; this one is slightly more complex as the docker container needs access to the docker socket itself, which is or is not possible on Fargate (I am currently using this on a EC2 and it works by bind-mounting the docker socket into the client container).

Is it possible to a provide a custom binary and change the docker config?