Showing posts from June, 2019

Running Jenkins on ECS

Running Jenkins using ECS tasks to run worker nodes has been documented before, however there aren’t any up to date examples, nor  provide separation of the master and salves. This post is fairly up to date deployment using the newer deployment techniques offered by AWS. Even if your not using Jenkins, being able to create CloudFormation templates using the new EC2 launch options is helpful if you’re using many spot instances, as you will most like be experiencing instance type availability fluctuations.
Key features of this deploymentBoth worker nodes and master node run on ECS: the master as a service and slaves as dynamically added tasksThe master node runs on it’s own dedicated cluster; it's file system store is only mounted on and accessible by the masterThe job can launch and run build docker images from within an already running containerThe worker nodes can also spawn build agents (docker containers) using the "new" Jenkins pipeline syntax;
where the Jenkins cod…