Compare commits

...

3 Commits

Author SHA1 Message Date
OpenCode Test
901986f84f feat: enable web, worker, and migrate jobs with correct registry 2025-12-26 13:46:24 -08:00
OpenCode Test
f7b93dc284 fix: add .worktrees/ to .gitignore to prevent tracking worktree contents 2025-12-26 12:44:41 -08:00
OpenCode Test
360998d064 docs: add plan to enable web and worker applications 2025-12-26 12:41:36 -08:00
3 changed files with 99 additions and 4 deletions

3
.gitignore vendored
View File

@@ -41,3 +41,6 @@ Thumbs.db
# Temporary files
CHANGES_SUMMARY.sh
# Git worktrees
.worktrees/

View File

@@ -0,0 +1,84 @@
# Plan: Enable Porthole Web and Worker Applications
## Overview
Currently, the porthole namespace has infrastructure deployed (MinIO, Postgres, Redis) but the main applications are intentionally disabled until container images are built. This plan outlines the steps to build images and enable the web and worker services.
## Current State
- ✅ MinIO, Postgres, Redis running
- ✅ Cleanup CronJob active
- ❌ Web app disabled (no UI)
- ❌ Worker app disabled (no job processing)
- ❌ Migration job disabled (no schema migrations)
## Required Actions
### 1. Build Container Images
Build and push multi-arch images for both web and worker:
```bash
# Build web app (Next.js standalone)
REGISTRY=gitea-gitea-http.taildb3494.ts.net TAG=dev
docker buildx build --platform linux/amd64,linux/arm64 \
-f apps/web/Dockerfile \
-t "$REGISTRY/will/porthole-web:$TAG" \
--push .
# Build worker app (includes ffmpeg + exiftool)
REGISTRY=gitea-gitea-http.taildb3494.ts.net TAG=dev
docker buildx build --platform linux/amd64,linux/arm64 \
-f apps/worker/Dockerfile \
-t "$REGISTRY/will/porthole-worker:$TAG" \
--push .
```
### 2. Update Helm Values
Enable services in `helm/porthole/values-cluster.yaml`:
```yaml
# Enable main applications
web:
enabled: true
worker:
enabled: true
# Enable migrations
jobs:
migrate:
enabled: true
```
### 3. ArgoCD Sync
Changes will sync automatically, or trigger manually:
```bash
argocd app sync porthole
```
## Verification
After sync, verify:
```bash
# Check deployments
kubectl get deployments -n porthole
# Check pods are running
kubectl get pods -n porthole
# Check logs
kubectl logs -f deployment/porthole-porthole-web -n porthole
kubectl logs -f deployment/porthole-porthole-worker -n porthole
```
## Testing
- Access web UI via Tailscale ingress: `app.taildb3494.ts.net`
- Upload a test asset and verify worker processes it
- Check MinIO for stored objects
- Verify database migrations ran successfully

View File

@@ -11,15 +11,23 @@ secrets:
accessKeyId: "FwGiBwCXKuQdthR1QLa"
secretAccessKey: "OtmAz9m7o941wG1Gms2yItyqxd6gCWY8k4LJVBX"
# Temporarily disable jobs and apps until images are built
# Enable jobs and apps now that images are built
jobs:
migrate:
enabled: false
enabled: true
web:
enabled: false
enabled: true
worker:
enabled: false
enabled: true
# Correct image registry (gitea-http not gitea-gitea-http)
images:
web:
repository: gitea-http.taildb3494.ts.net/will/porthole-web
worker:
repository: gitea-http.taildb3494.ts.net/will/porthole-worker
# Reduce MinIO storage for testing (insufficient storage on cluster)
minio: