Skip to content
Open
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
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Exclude model/data dirs from build context (reduce context size, avoid permission issues)
ollama/
comfyui/models/
comfyui/output/
comfyui/input/
swarmui/data/
swarmui/output/
swarmui/dlbackend/
swarmui/models/
swarmui/extensions/
swarmui/bin/
.git/
.env
.env.*
20 changes: 9 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Environment Variables
# Copy this file to .env and update with your actual values

# Civitai API Configuration
CIVITAI_API_KEY=your_civitai_api_key_here

# Hugging Face (model downloads, HF Hub; optional for private/gated models)
HUGGINGFACE_HUB_TOKEN=your_huggingface_token_here

# Optional: Model download settings
CIVITAI_API_URL=https://civitai.com/api/v1
OPENROUTER_API_KEY=
CIVITAI_API_KEY=
HF_TOKEN=
FREYA_DIFFUSION_WORKER_URL=http://127.0.0.1:8091
# Optional: require Bearer on /v1 routes (empty = open local/dev)
# FREYA_API_TOKEN=
# FREYA_WORKER_TOKEN= # same value on freya-api + freya-worker
# FREYA_CORS_ORIGINS=http://127.0.0.1:5173
# VITE_FREYA_API_TOKEN= # for local Vite UI when API token is set
30 changes: 20 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:

- name: Validate Docker Compose
run: |
# Create a minimal .env file if it doesn't exist (for CI validation)
if [ ! -f .env ]; then
touch .env
# Compose stack lives under legacy/ after the OpenRouter operator cutover
if [ ! -f legacy/.env ]; then
touch legacy/.env
fi
docker compose config > /dev/null
docker compose -f legacy/docker-compose.yml --project-directory legacy config > /dev/null
echo "✅ Docker Compose configuration is valid"

- name: Install kube-score
Expand Down Expand Up @@ -104,18 +104,28 @@ jobs:
wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
chmod +x /usr/local/bin/hadolint

- name: Validate ComfyUI Dockerfile
- name: Validate legacy ComfyUI Dockerfile
run: |
echo "Validating Dockerfile.comfyui..."
hadolint Dockerfile.comfyui || echo "⚠️ ComfyUI Dockerfile had linting warnings (non-blocking)"
echo "Validating legacy/Dockerfile.comfyui..."
hadolint legacy/Dockerfile.comfyui || echo "⚠️ ComfyUI Dockerfile had linting warnings (non-blocking)"
echo "✅ ComfyUI Dockerfile validation complete"

- name: Validate SwarmUI Dockerfile
- name: Validate legacy SwarmUI Dockerfile
run: |
echo "Validating Dockerfile.swarmui..."
hadolint Dockerfile.swarmui || echo "⚠️ SwarmUI Dockerfile had linting warnings (non-blocking)"
echo "Validating legacy/Dockerfile.swarmui..."
hadolint legacy/Dockerfile.swarmui || echo "⚠️ SwarmUI Dockerfile had linting warnings (non-blocking)"
echo "✅ SwarmUI Dockerfile validation complete"

- name: Validate Freya Dockerfiles
run: |
for f in Dockerfile Dockerfile.web; do
if [ -f "$f" ]; then
echo "Validating $f..."
hadolint "$f" || echo "⚠️ $f had linting warnings (non-blocking)"
fi
done
echo "✅ Freya Dockerfile validation complete"

test-scripts:
name: Test Scripts
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint

on:
push:
pull_request:

jobs:
lint:
name: fmt + clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: make vet
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Tests

on:
push:
pull_request:

jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: make test
34 changes: 17 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Python
# Rust
/target
/data
**/*.rs.bk

# Web
web/node_modules
web/dist

# Python (legacy)
__pycache__/
*.py[cod]
*$py.class
Expand All @@ -8,10 +17,8 @@ env/
venv/
ENV/
.venv
pip-log.txt
pip-delete-this-directory.txt

# Models and outputs
# Models and outputs (legacy Compose volumes)
comfyui/models/
comfyui/output/
comfyui/input/
Expand All @@ -28,34 +35,27 @@ openwebui/
*.pt
*.pth

# IDE
# IDE / OS
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Docker
.dockerignore

# Logs
*.log
logs/

# Environment
# Environment / secrets
.env
.env.local
.env.*
!.env.example
*.pem

# .NET
# .NET (legacy SwarmUI)
bin/
obj/
*.dll
*.exe

# Jupyter
.ipynb_checkpoints/
*.ipynb
Loading
Loading