You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux2/.github/runners
Paulo Gomes 9e7018383a
Add pkg-config to arm runners
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
3 years ago
..
README.md Run ARM64 e2e tests on Equinix hardware 3 years ago
prereq.sh Add pkg-config to arm runners 3 years ago
runner-setup.sh Run ARM64 e2e tests on Equinix hardware 3 years ago

README.md

Flux ARM64 GitHub runners

The Flux ARM64 end-to-end tests run on Equinix instances provisioned with Docker and GitHub self-hosted runners.

Current instances

Runner Instance Region
equinix-arm-1 flux-equinix-arm-01 AMS1
equinix-arm-2 flux-equinix-arm-01 AMS1
equinix-arm-3 flux-equinix-arm-01 AMS1
equinix-arm-4 flux-equinix-arm-02 DFW2
equinix-arm-5 flux-equinix-arm-02 DFW2
equinix-arm-6 flux-equinix-arm-02 DFW2

Instance setup

In order to add a new runner to the GitHub Actions pool, first create a server on Equinix with the following configuration:

  • Type: c2.large.arm
  • OS: Ubuntu 20.04

Install prerequisites

  • SSH into a newly created instance
ssh root@<instance-public-IP>
  • Create the ubuntu user
adduser ubuntu
usermod -aG sudo ubuntu
su - ubuntu
  • Create the prerequisites dir
mkdir -p prereq && cd prereq
  • Download the prerequisites script
curl -sL https://raw.githubusercontent.com/fluxcd/flux2/main/.github/runners/prereq.sh > prereq.sh \
  && chmod +x ./prereq.sh
  • Install the prerequisites
sudo ./prereq.sh

Install runners

  • Retrieve the GitHub runner token from the repository settings page

  • Create 3 directories runner1, runner2, runner3

  • In each dir run:

curl -sL https://raw.githubusercontent.com/fluxcd/flux2/main/.github/runners/runner-setup.sh > runner-setup.sh \
  && chmod +x ./runner-setup.sh

./runner-setup.sh equinix-arm-<NUMBER> <TOKEN>
  • Reboot the instance
sudo reboot
  • Navigate to the GitHub repository runners page and check the runner status