Skip to content

A diagnostic tool that checks if your system meets the requirements for running QPoint.

Notifications You must be signed in to change notification settings

qpoint-io/preflight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QPoint Preflight

A diagnostic tool that checks if your system meets the requirements for running QPoint.

What it checks

  • Root privileges
  • Filesystem read-write status
  • Linux kernel version (≥ 5.10)
  • Kernel lockdown status
  • Cgroups v2 configuration
  • BPF system settings
  • Network interface configuration

Usage

Quick Run

Run directly using curl:

curl -sSL https://github.com/qpoint-io/preflight/releases/latest/download/preflight.sh | bash

Or wget:

wget -qO- https://github.com/qpoint-io/preflight/releases/latest/download/preflight.sh | bash

Manual Download

  1. Download the script:
wget https://github.com/qpoint-io/preflight/releases/latest/download/preflight.sh
  1. (Optional) Verify the checksum:
# Download the checksum file
wget https://github.com/qpoint-io/preflight/releases/latest/download/checksum.txt

# Verify the file matches the checksum
sha256sum -c checksum.txt
  1. Make it executable:
chmod +x preflight.sh
  1. Run it:
sudo ./preflight.sh

Development

Prerequisites

  • Docker (required for Mac or Windows development)
  • Linux environment (native or containerized)

Development Commands

Start a development container (required for Mac/Windows):

make dev

Format and lint the code:

make fmt

Install development tools:

make install-tools

Release Process

To create a new release:

  1. Create and push a new version tag:
git tag v1.0.0  # Increment version number as needed
git push origin v1.0.0
  1. GitHub Actions will automatically:
    • Build the release artifacts
    • Create a new GitHub release
    • Upload the preflight script and checksum file

Contributing

Contributions are welcome! Please follow these guidelines:

  1. All shell code must pass shellcheck validation
  2. Maintain the existing structure in preflight.sh
  3. For architectural changes, please open an issue first

Pull Request Process

  1. Ensure your code passes make fmt
  2. Add tests for new checks if applicable
  3. Update documentation as needed
  4. Submit a pull request with a clear description of the changes

About

A diagnostic tool that checks if your system meets the requirements for running QPoint.

Resources

Stars

Watchers

Forks

Packages

No packages published