Welcome to GARM!
GARM enables you to create and automatically maintain pools of self-hosted GitHub runners, with auto-scaling that can be used inside your github workflow runs.
The goal of GARM
is to be simple to set up, simple to configure and simple to use. It is a single binary that can run on any GNU/Linux machine without any other requirements other than the providers it creates the runners in. It is intended to be easy to deploy in any environment and can create runners in any system you can write a provider for. There is no complicated setup process and no extremely complex concepts to understand. Once set up, it's meant to stay out of your way.
GARM supports creating pools on either GitHub itself or on your own deployment of GitHub Enterprise Server. For instructions on how to use GARM
with GHE, see the credentials section of the documentation.
Through the use of providers, GARM
can create runners in a variety of environments using the same GARM
instance. Want to create pools of runners in your OpenStack cloud, your Azure cloud and your Kubernetes cluster? No problem! Just install the appropriate providers, configure them in GARM
and you're good to go. Create zero-runner pools for instances with high costs (large VMs, GPU enabled instances, etc) and have them spin up on demand, or create large pools of k8s backed runners that can be used for your CI/CD pipelines at a moment's notice. You can mix them up and create pools in any combination of providers or resource allocations you want.
Whether you're running into issues or just want to drop by and say "hi", feel free to join us on slack.
Check out the quickstart document for instructions on how to install GARM
. If you'd like to build from source, check out the building from source document.
Thanks to the efforts of the amazing folks at @mercedes-benz, GARM can now be integrated into k8s via their operator. Check out the GARM operator for more details.
GARM uses providers to create runners in a particular IaaS. The providers are external executables that GARM calls into to create runners. Before you can create runners, you'll need to install at least one provider.
External providers are binaries that GARM calls into to create runners in a particular IaaS. There are several external providers available:
- OpenStack
- Azure
- Kubernetes - Thanks to the amazing folks at @mercedes-benz for sharing their awesome provider!
- LXD
- Incus
Follow the instructions in the README of each provider to install them.
The GARM
configuration is a simple toml
. The sample config file in the testdata folder is fairly well commented and should be enough to get you started. The configuration file is split into several sections, each of which is documented in its own page. The sections are:
If you would like to optimize the startup time of new instance, take a look at the performance considerations page.
The providers are interfaces between GARM
and a particular IaaS in which we spin up GitHub Runners. External providers can be written in any language, as they are in the form of an external executable that GARM
calls into. Please see the Writing an external provider document for details. Also, feel free to inspect the two available sample external providers in this repository.