Welcome to the GitHub Self-Hosted Runner Dockerization repository. This project provides a Dockerized solution for setting up a self-hosted GitHub Actions runner.
- Docker Compose Setup: Easily deploy self-hosted runners using Docker Compose.
- Customizable: Use the provided Docker image or build your own using the Dockerfile.
- Scalable: Deploy multiple runner replicas with resource constraints.
LICENSE
: The license file for this project.README.md
: The documentation file you are currently reading.docker-compose.yml
: The Docker Compose file to deploy the self-hosted runner.Docker Image/
: A directory containing the Dockerfile andstart.sh
script for building the runner image.
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/youssefbrr/self-hosted-runner.git cd self-hosted-runner
-
Edit the
docker-compose.yml
file to specify your repository, registration token, and runner name. -
Deploy the self-hosted runner:
docker-compose up -d
-
Clone the repository:
git clone https://github.com/youssefbrr/self-hosted-runner.git cd self-hosted-runner
-
Build the Docker image:
cd Docker Image docker build -t custom-github-runner:latest ./
-
Edit the
docker-compose.yml
file to use your custom image. -
Deploy the self-hosted runner:
docker-compose up -d
REPO
: The GitHub repository to register the runner to (format:<owner>/<repo>
).REG_TOKEN
: The registration token for the self-hosted runner from the GitHub repository settings.NAME
: The name of the self-hosted runner.