Installation Overview¶
The GitHub Cookstyle Runner can be deployed in multiple ways depending on your infrastructure and requirements.
Prerequisites¶
Before installing, ensure you have:
1. GitHub App Credentials¶
You'll need to create a GitHub App with the following:
- GitHub App ID: The numeric ID of your GitHub App
- Installation ID: The installation ID for your organization
- Private Key: A PEM-encoded private key for authentication
Creating a GitHub App
See the GitHub App Setup Guide for detailed instructions on creating a GitHub App.
2. Required Permissions¶
Your GitHub App must have the following permissions:
-
Repository permissions:
- Contents: Read & Write (to clone repos and create branches)
- Pull Requests: Read & Write (to create PRs)
- Issues: Read & Write (to create issues for manual fixes)
- Metadata: Read (to access repository information)
-
Organization permissions:
- Members: Read (to search for repositories)
3. Environment Requirements¶
Choose your deployment method:
- Docker Engine 20.10+
- Docker Compose 2.0+
- Kubernetes 1.19+
- kubectl configured
- Persistent storage support
- Ruby 3.4+
- Git
- Bundler
Installation Methods¶
Docker Compose¶
Best for: Local development, testing, single-host deployments
Docker Compose Installation Guide →
Kubernetes¶
Best for: Production deployments, scheduled runs, high availability
Kubernetes Installation Guide →
Local Development¶
Best for: Contributing to the project, debugging
# Clone the repository
git clone https://github.com/damacus/github-cookstyle-runner.git
cd github-cookstyle-runner
# Install dependencies
bundle install
# Configure (copy and edit)
cp config/settings/local.yml.example config/settings/local.yml
# Run
./bin/cookstyle-runner
Docker Images¶
Images are published to GitHub Container Registry:
| Tag | Description | Use Case |
|---|---|---|
latest |
Latest main branch | Production |
v1.0.0 |
Specific version | Pinned deployments |
dev |
Latest PR build | Testing |
Pull the image:
Next Steps¶
- Choose your installation method above
- Follow the detailed installation guide
- Configure the application
- Run your first scan