Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ jobs:

- name: Build Docker images
run: |
docker-compose -f docker-compose.dev.yml build
docker compose -f docker-compose.dev.yml build
15 changes: 12 additions & 3 deletions Dockerfile.controller
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ FROM python:3.12-slim AS builder
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
curl \
git \
libssl-dev \
pkg-config \
&& curl -sS https://liboqs.org/install.sh | bash \
&& ldconfig /usr/local/lib
&& git clone --depth 1 --branch 0.15.0 https://github.com/open-quantum-safe/liboqs /tmp/liboqs \
&& cmake -S /tmp/liboqs -B /tmp/liboqs/build \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
&& cmake --build /tmp/liboqs/build --parallel $(nproc) \
&& cmake --install /tmp/liboqs/build \
&& ldconfig /usr/local/lib \
&& rm -rf /tmp/liboqs \
&& rm -rf /var/lib/apt/lists/*

# Create non-root user for security
RUN useradd -u 1000 -g 1000 appuser
RUN groupadd -g 1000 appuser && useradd -u 1000 -g appuser appuser

WORKDIR /app

Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Build tools
gcc \
git \
# ONNX runtime for model inference
onnxruntime>=1.16.0 \
&& rm -rf /var/lib/apt/lists/*

# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir "onnxruntime>=1.16.0"

# Copy application code
COPY mohawk_gui/ ./mohawk_gui/
Expand Down
54 changes: 54 additions & 0 deletions mohawk_gui/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Mohawk Inference Engine GUI - Configuration Template
# Version: 2.1.0
# =============================================================================

[mohawk]
# Worker connection settings
host = "localhost"
port = 8003

# SSL/TLS configuration (production)
ssl_enabled = false
ssl_cert = "certs/client.crt"
ssl_key = "certs/client.key"

[workers]
# Worker management settings
enabled = true
auto_discover = false
timeout_ms = 5000
max_connections = 100

[sessions]
# Session management
max_concurrent = 10
default_batch_size = 32
checkpoint_interval_s = 60

[metrics]
# Metrics collection
sampling_rate = 0.1
export_interval_s = 60
buffer_window_size = 1000

[logging]
# Logging configuration
level = "INFO"
file = "logs/mohawk_gui.log"
format = "json"

[security]
# Security settings
jwt_expiry_hours = 24
refresh_window_hours = 1
audit_enabled = true

[[resources]]
name = "model.onnx"
path = "models/model.onnx"
devices = ["gpu_0", "gpu_1"]

[[resources]]
name = "tokenizer"
path = "models/tokenizer.json"
devices = ["cpu"]
Loading