-
Notifications
You must be signed in to change notification settings - Fork 0
BUILD_GUIDE
makr-code edited this page Nov 30, 2025
·
1 revision
# Debug build with MSVC
.\build-unified.ps1 -Platform windows -Config debug
# Release build with ClangCL
.\build-unified.ps1 -Platform windows -Config release -Compiler clangcl# Build on WSL from Windows
.\build-unified.ps1 -Platform linux -Config release
# Or directly on Linux
./build.sh# Standard Docker image (Ubuntu 24.04)
.\build-unified.ps1 -Platform docker -Tag themisdb:latest
# Quick build with pre-compiled binary
.\build-docker-simple.ps1
# QNAP (Ubuntu 20.04, GLIBC 2.31) statischer Build mit separatem Manifest
.\build-qnap.ps1# Cross-compile for ARM64
.\build-unified.ps1 -Platform arm64 -Config release
# Raspberry Pi specific
.\build-unified.ps1 -Platform rpi -Config release# Dry run to verify changes
.\scripts\release.ps1 -Version 0.2.0 -DryRun
# Update version, commit, and tag
.\scripts\release.ps1 -Version 0.2.0# Build all platforms
.\scripts\release.ps1 -Version 0.2.0 -Platforms windows,linux,docker
# Build specific platforms only
.\scripts\release.ps1 -Version 0.2.0 -Platforms docker# Push to GitHub and Docker Hub
.\scripts\release.ps1 -Version 0.2.0 -PushGit -PushDockerthemis/
├── build-unified.ps1 # Main build script (all platforms)
├── build-docker-simple.ps1 # Quick Docker build (pre-built binary)
├── scripts/
│ └── release.ps1 # Release automation
├── Dockerfile # Full Docker build (Ubuntu 24.04)
├── Dockerfile.simple # Minimal Docker (pre-built binary)
├── docker-compose.yml # Standard deployment
├── docker-compose-arm.yml # ARM64 deployment
├── CMakePresets.json # Platform-specific CMake configs
└── BUILD_STRATEGY.md # Detailed build documentation
The following files are obsolete and should be removed:
-
Dockerfile.old- Replaced by Dockerfile.simple -
Dockerfile.runtime- Redundant -
Dockerfile.qnap- Non-functional (vcpkg issues) -
Dockerfile.qnap.simple- Incomplete -
build-docker-qnap.ps1- Non-functional -
build-docker-qnap-simple.ps1- Incomplete -
build-tests-msvc.ps1- Use CMakePresets instead -
build-msvc/directory - Old build artifacts -
build-wsl/directory - Use CMakePresets instead
- Requires Visual Studio 2022 or LLVM/Clang
- vcpkg automatically handled by CMake
- Requires GCC 11+ or Clang 14+
- Ubuntu 24.04 LTS recommended (GLIBC 2.38+)
- Standard: Ubuntu 24.04 (GLIBC 2.38+)
- QNAP: Ubuntu 20.04 (GLIBC 2.31) via
build-qnap.ps1(statisch, separates Manifestvcpkg.qnap.json)
- Tested on Raspberry Pi 4/5
- Debian Bullseye or Ubuntu 22.04 recommended
.\build-unified.ps1 -Clean.\build-unified.ps1 -Platform windows -Tests.\build-unified.ps1 -Platform linux -Benchmarks.\build-unified.ps1 -Platform linux -Static
# Alternativ mit QNAP Manifest (Tests/Benchmarks/Tracing aktiv)
.\build-qnap.ps1.\build-unified.ps1 -Platform docker -NoCacheUse the simplified Docker build:
.\build-docker-simple.ps1Nutze QNAP Build-Script (statisch + eigenes Manifest):
.\build-qnap.ps1Ensure project is in /mnt/c/VCC/themis or adjust paths in scripts.
Version is centrally managed in CMakeLists.txt:
project(ThemisDB VERSION 0.1.0)Release script automatically updates:
- CMakeLists.txt
- CHANGELOG.md
- Git tags
- Docker tags
GitHub Actions workflows:
-
.github/workflows/ci.yml- Build and test -
.github/workflows/build-multiarch.yml- Multi-platform builds -
.github/workflows/arm-build.yml- ARM64 builds
Triggers:
- Push to
main- Full CI - Tags
v*.*.*- Release builds
See BUILD_STRATEGY.md for:
- Detailed platform matrix
- QNAP deployment solutions
- Separates Manifest:
vcpkg.qnap.json(inkl. tests/benchmarks/tracing, statischer Triplet)
- Separates Manifest:
- Packaging strategy (.deb, .rpm, etc.)
- Migration plan
- AQL Overview
- AQL Syntax Reference
- EXPLAIN and PROFILE
- Hybrid Queries
- Pattern Matching
- Subquery Implementation
- Subquery Quick Reference
- Fulltext Release Notes
- Hybrid Search Design
- Fulltext Search API
- Content Search
- Pagination Benchmarks
- Stemming
- Hybrid Fusion API
- Performance Tuning
- Migration Guide
- Storage Overview
- RocksDB Layout
- Geo Schema
- Index Types
- Index Statistics
- Index Backup
- HNSW Persistence
- Vector Index
- Graph Index
- Secondary Index
- Security Overview
- RBAC and Authorization
- TLS Setup
- Certificate Pinning
- Encryption Strategy
- Column Encryption
- Key Management
- Key Rotation
- HSM Integration
- PKI Integration
- eIDAS Signatures
- PII Detection
- PII API
- Threat Model
- Hardening Guide
- Incident Response
- SBOM
- Enterprise Overview
- Scalability Features
- Scalability Strategy
- HTTP Client Pool
- Enterprise Build Guide
- Enterprise Ingestion
- Benchmarks Overview
- Compression Benchmarks
- Compression Strategy
- Memory Tuning
- Hardware Acceleration
- GPU Acceleration Plan
- CUDA Backend
- Vulkan Backend
- Multi-CPU Support
- TBB Integration
- Time Series
- Vector Operations
- Graph Features
- Temporal Graphs
- Path Constraints
- Recursive Queries
- Audit Logging
- Change Data Capture
- Transactions
- Semantic Cache
- Cursor Pagination
- Compliance Features
- GNN Embeddings
- Geo Overview
- Geo Architecture
- 3D Game Acceleration
- Geo Feature Tiering
- G3 Phase 2 Status
- G5 Implementation
- Integration Guide
- Content Architecture
- Content Pipeline
- Content Manager
- JSON Ingestion
- Content Ingestion
- Filesystem API
- Image Processor
- Geo Processor
- Policy Implementation
- Developer Guide
- Implementation Status
- Development Roadmap
- Build Strategy
- Build Acceleration
- Code Quality Guide
- AQL LET Implementation
- Audit API Implementation
- SAGA API Implementation
- PKI eIDAS
- WAL Archiving
- Architecture Overview
- Strategic Overview
- Ecosystem
- MVCC Design
- Base Entity
- Caching Strategy
- Caching Data Structures
- Docker Build
- Docker Status
- Multi-Arch CI/CD
- ARM Build Guide
- ARM Packages
- Raspberry Pi Tuning
- Packaging Guide
- Package Maintainers
- Roadmap
- Changelog
- Database Capabilities
- Implementation Summary
- Sachstandsbericht 2025
- Enterprise Final Report
- Test Report
- Build Success Report
- Integration Analysis
- Source Overview
- API Implementation
- Query Engine
- Storage Layer
- Security Implementation
- CDC Implementation
- Time Series
- Utils and Helpers
Updated: 2025-11-30