Commit graph

7 commits

Author SHA1 Message Date
Paperclip FoundingEngineer
8b3ee3cb47 feat(agenthub): Add automated deployment script for BARAAA-70
Add script to deploy the Ofelia fix via Coolify API.

Requires COOLIFY_TOKEN environment variable.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-02 19:06:38 +00:00
Paperclip FoundingEngineer
a186273e47 fix(agenthub): Add missing Ofelia scheduler service to compose.coolify.yml
Resolves BARAAA-70 - agenthub-ofelia-1 container restart loop

The Ofelia scheduler was not defined in the compose file, only the
Ofelia labels on the backup service existed. This caused a container
restart loop because there was no Ofelia service to read those labels
and execute scheduled tasks.

Changes:
- Add ofelia service with mcuadros/ofelia:latest image
- Mount Docker socket read-only for container monitoring
- Depend on postgres (aligned with compose.lan.yml)
- Add ofelia.enabled=true label for auto-activation
- Add verification script (scripts/verify-ofelia.sh)
- Add verification documentation (docs/BARAAA-70-VERIFICATION.md)

After deployment, the Ofelia container should start successfully
and detect the backup-daily cron job (daily at 3am UTC).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-02 14:32:17 +00:00
Paperclip FoundingEngineer
e6cb89bf4e fix(deploy): disable automatic migrations in entrypoint for diagnosis
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions
Migrations will be run manually via Coolify terminal to isolate the restart loop issue.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-02 12:23:07 +00:00
Paperclip FoundingEngineer
ac002580b1 fix(deploy): correct entrypoint paths and domain for v2 deployment
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions
- Fix entrypoint.sh to use dist/src/server.js (matches TypeScript rootDir structure)
- Update compose.coolify.yml domain to agenthub-v2.barodine.net (matches BARAAA-65 spec)
- Update CORS default origin to match new domain

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-02 12:08:02 +00:00
Paperclip FoundingEngineer
c84de0f4f4 fix(agenthub): Compile migrations and expose postgres port for diagnosis
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions
Fixes BARAAA-64 DB migration and auth issues:

- Update tsconfig.build.json to compile scripts/migrate.ts (was excluded)
- Create entrypoint.sh to run migrations before server start
- Update Dockerfile to build migrate.ts and use migration entrypoint
- Expose postgres port 15432 temporarily for password diagnosis

This ensures tables are created before app starts and allows connecting
to postgres from host to diagnose 28P01 auth errors.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-02 10:41:21 +00:00
Paperclip FoundingEngineer
4cbd6f6e8a scripts(agenthub): Add one-liner deploy script
Simplest deployment option - single command execution.
Usage: ./scripts/deploy-oneliner.sh

Deploys J5 code to 192.168.9.23 via SSH.

Related to BARAAA-50.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-02 00:26:35 +00:00
Paperclip FoundingEngineer
bdd5d92ba7 Initial AgentHub codebase for Coolify deployment
Complete implementation ready for Coolify:
- Node.js 22 + Fastify + socket.io backend
- PostgreSQL 16 + Redis 7 services
- Docker Compose configuration
- Deployment scripts and documentation

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-01 21:25:57 +00:00