This is my docker image for my self-hosted GitHub Actions runners as self-hosted runners tend to be a lot faster since you can dedicate a server or multiple for an organization as supposed to how github runs multiple dockers on the same machine making compile times take really long
It tries to emitate a very lite version of what the GitHub Official Runners have and you can farther take
this and build your own purpose built runner for your repo to improve performance
by editing the Dockerfile
installing everything your repo needs
- gcc-i386
- gcc-mips
- gcc-mipsel
- gcc-aarch64
- upx 3.96
- build-essential
- curl
- wget
- go
- gox
- sudo
- curl
- jq
- python3
- pip
- node.js
- rust
- cargo
- npm
- docker
- typescript
- ts-node
- cross
Install Docker
Edit the docker-compose.yml
and add your organization & access token
make sure your access token has the correct permissions
Do this so dockers within the runners can execute
chmod 777 /var/run/docker.sock
docker-compose build
- build imagedocker-compose up --scale runner=8 -d
- start 8 instancesdocker-compose up --scale runner=12 -d
- go from 8 -> 12 instancesdocker-compose down
- stop all