Company
Date Published
Author
Shubham Agrawal
Word count
854
Language
English
Hacker News points
None

Summary

Harness CI has introduced beta support for AWS virtual machines (VMs), allowing CI builds to be executed on either Kubernetes clusters or AWS VMs, including support for Windows OS and Docker command execution. This enhancement significantly optimizes build times through a VM pooling strategy that pre-initializes Amazon EC2 instances. The design involves running each CI stage on a dedicated AWS VM, which is terminated after the build, eliminating the need for workspace cleanup and ensuring a fresh environment for every build. The implementation requires installing Drone Runner AWS on a delegate VM, which manages the lifecycle of AWS VMs and facilitates the execution of steps during the CI build process. The system is structured into three phases: initialization, step execution, and cleanup, all managed by delegate tasks. The VM pooling strategy aids in reducing startup times by maintaining a certain number of pre-initialized instances, thereby enhancing the efficiency of the CI process on AWS infrastructure.