Fargate Runner Best Practices Deployment Kit
Problem
- Setting up for Fargate runner has many manual steps and some of the documentation is not clear on the container requirements.
Existing SA Asks
- Large Customer asked for a Fargate Runner Best Practices Sesssion; https://gitlab.my.salesforce.com/00161000010eIz5
Implementation
- Enhance and utilize existing runner on AWS GE here: https://gitlab.com/guided-explorations/gitlab-deployment/gitlab-runner-autoscaling-aws-asg
- Add the minimal Fargate Cluster cloudformation template that works with the runner. Seems like it needs the cluster definition (but no ASG or other instance-like stuff) and a task definition pointed to a container
- Provide a sample dockerfile that builds out a fargate ready build container and actually does that in the target repo
- MVC1: point to a gitlab container, not ECR
- MVC2: consider showing an ECR example along with CF code to create the ECR and permissions to it?
- Create a runner script for the fargate manager node so it can be in an single instance ASG
Edited by DarwinJS