-
Notifications
You must be signed in to change notification settings - Fork 4
Feature/ci optimization bigbox #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
45763bb
ci: increase timeouts for CI reliability
AlexMikhalev dc503e1
ci: configure workflows to use bigbox self-hosted runner
AlexMikhalev e361f53
ci: add bigbox runner validation script
AlexMikhalev 43f28f8
Merge branch 'main' into feature/ci-optimization-bigbox
AlexMikhalev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,202 @@ | ||||||||||||||||||||||||||||||||||
| # Bigbox GitHub Actions Runner Setup | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| This document explains how to set up the bigbox server as a self-hosted GitHub Actions runner for faster CI/CD pipeline execution. | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Overview | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| The bigbox runner is configured to use the following labels: | ||||||||||||||||||||||||||||||||||
| - `self-hosted` - Indicates it's not a GitHub-hosted runner | ||||||||||||||||||||||||||||||||||
| - `linux` - Indicates the operating system | ||||||||||||||||||||||||||||||||||
| - `bigbox` - Custom label for this specific runner | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Prerequisites | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - Ubuntu 24.04 LTS server (bigbox.terraphim.cloud) | ||||||||||||||||||||||||||||||||||
| - Docker and Docker Compose installed | ||||||||||||||||||||||||||||||||||
| - Rust toolchain (1.87.0+) | ||||||||||||||||||||||||||||||||||
| - Node.js (18+) | ||||||||||||||||||||||||||||||||||
| - Sufficient disk space for caching | ||||||||||||||||||||||||||||||||||
| - SSH access for management | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Runner Registration | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| The runner should be registered with these labels: | ||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| ./config.sh --url https://github.com/terraphim/terraphim-ai --token <TOKEN> --labels self-hosted,linux,bigbox | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## System Requirements | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Minimum Resources | ||||||||||||||||||||||||||||||||||
| - **CPU**: 4 cores | ||||||||||||||||||||||||||||||||||
| - **Memory**: 8GB RAM | ||||||||||||||||||||||||||||||||||
| - **Storage**: 50GB available space | ||||||||||||||||||||||||||||||||||
| - **Network**: Stable internet connection | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Recommended Resources | ||||||||||||||||||||||||||||||||||
| - **CPU**: 8+ cores | ||||||||||||||||||||||||||||||||||
| - **Memory**: 16GB+ RAM | ||||||||||||||||||||||||||||||||||
| - **Storage**: 100GB+ SSD | ||||||||||||||||||||||||||||||||||
| - **Network**: High bandwidth for dependency downloads | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Installed Dependencies | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| The runner should have these dependencies pre-installed: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| #### System Dependencies | ||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| sudo apt-get update | ||||||||||||||||||||||||||||||||||
| sudo apt-get install -y \ | ||||||||||||||||||||||||||||||||||
| build-essential \ | ||||||||||||||||||||||||||||||||||
| clang \ | ||||||||||||||||||||||||||||||||||
| libclang-dev \ | ||||||||||||||||||||||||||||||||||
| llvm-dev \ | ||||||||||||||||||||||||||||||||||
| pkg-config \ | ||||||||||||||||||||||||||||||||||
| libssl-dev \ | ||||||||||||||||||||||||||||||||||
| python3 \ | ||||||||||||||||||||||||||||||||||
| make \ | ||||||||||||||||||||||||||||||||||
| g++ \ | ||||||||||||||||||||||||||||||||||
| libcairo2-dev \ | ||||||||||||||||||||||||||||||||||
| libpango1.0-dev \ | ||||||||||||||||||||||||||||||||||
| libjpeg-dev \ | ||||||||||||||||||||||||||||||||||
| libgif-dev \ | ||||||||||||||||||||||||||||||||||
| librsvg2-dev \ | ||||||||||||||||||||||||||||||||||
| libnss3-dev \ | ||||||||||||||||||||||||||||||||||
| libatk-bridge2.0-dev \ | ||||||||||||||||||||||||||||||||||
| libdrm2 \ | ||||||||||||||||||||||||||||||||||
| libxkbcommon-dev \ | ||||||||||||||||||||||||||||||||||
| libxcomposite-dev \ | ||||||||||||||||||||||||||||||||||
| libxdamage-dev \ | ||||||||||||||||||||||||||||||||||
| libxrandr-dev \ | ||||||||||||||||||||||||||||||||||
| libgbm-dev \ | ||||||||||||||||||||||||||||||||||
| libxss-dev \ | ||||||||||||||||||||||||||||||||||
| libasound2-dev | ||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| #### Rust Toolchain | ||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||||||||||||||||||||||||||||||||||
| source ~/.cargo/env | ||||||||||||||||||||||||||||||||||
| rustup default 1.87.0 | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+77
to
+80
|
||||||||||||||||||||||||||||||||||
| ```bash | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| source ~/.cargo/env | |
| rustup default 1.87.0 | |
| > **Note:** The runner should use the Rust toolchain specified in the project's `rust-toolchain` or `rust-toolchain.toml` file if present. If not, use the stable toolchain. The minimum supported Rust version is 1.87.0. | |
| ```bash | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| source ~/.cargo/env | |
| # Use the toolchain file if present, otherwise default to stable | |
| if [ -f rust-toolchain ] || [ -f rust-toolchain.toml ]; then | |
| rustup show | grep -q "Default toolchain" || true | |
| # This will automatically use the toolchain specified in the file when building | |
| else | |
| rustup default stable | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify whether Compose v2 (docker compose plugin) is required and add install/verification steps (e.g., docker compose version) so runner operators know how to satisfy this prerequisite.
The output should show a version starting with
Docker Compose version v2.x.x. If you seedocker-compose(with a hyphen) or a version below v2, you need to upgrade.Install/Upgrade Docker Compose v2:
docker compose version.