Repository navigation
feat: enhance deployment scripts and documentation for Paca - #735
Conversation
- Updated `publish-template.sh` to support publishing multiple CloudFormation templates for AWS. - Added README for DigitalOcean Marketplace 1-Click image, detailing build and submission steps. - Created `99-one-click` MOTD script for DigitalOcean to display installation information. - Implemented `001_paca_firstboot.sh` for initial setup of Paca on new Droplets. - Introduced Packer template `paca.pkr.hcl` for building DigitalOcean Marketplace images. - Added Docker installation script `010-docker.sh` for setting up Docker and firewall on DigitalOcean. - Created `020-paca.sh` to stage the first-boot installer for Paca. - Developed `deploy-lite.sh` for lightweight deployment on Google Cloud, utilizing managed services. - Documented lightweight deployment process for GCP in `tutorial-lite.md`. - Added Dockerfile for Caddy gateway in Render blueprint. - Updated deployment documentation to reflect new lightweight options for AWS, GCP, DigitalOcean, Render, and Railway. - Created Render blueprint `render.yaml` for one-click Paca deployment.
There was a problem hiding this comment.
Important
Two fixes before merge: the Marketplace Packer template points at a script path that does not exist upstream (the image build aborts at its last provisioner), and the App Platform spec sets TRUSTED_PROXY_HOPS=2 for a topology with no gateway, so the API resolves every request to the platform router instead of the client.
Reviewed changes
- AWS lightweight template — new
paca-lite.cfn.yamlruns one Fargate task (Caddy gateway, API, web, realtime) behind an ALB with RDS, ElastiCache Valkey, S3 and Secrets Manager-generated secrets, plus optional Domain/ACM;cd.ymlandpublish-template.shnow upload and attach it. - GCP lightweight —
deploy-lite.shcreates one Cloud Run service with four containers, Cloud SQL, Memorystore, a GCS bucket reached over S3 interop (HMAC) and Secret Manager secrets, pulling Docker Hub images through an Artifact Registry remote repo; safe to re-run. - DigitalOcean App Platform —
.do/deploy.template.yamlruns API and realtime against a dev Postgres with a free static web site, platform ingress replacing Caddy, and external Redis/Spaces as prerequisites. - Render —
render.yamlplusdeploy/render/gateway/Dockerfile, which bakes the shared Caddyfile and patches its SPA upstream to forward the static site's Host. - DigitalOcean Marketplace image — Packer template, per-instance first-boot installer, Docker/UFW script, MOTD and submission README; still unlisted.
- Docs and CD — README one-click section split into Full stack/Lightweight tables, per-provider sections in
docs/deployment/one-click.md, a Railway recipe, and release-asset/S3 publishing for both CloudFormation templates.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…lick deploy documentation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the two commits since the prior Pullfrog review (8286b503 → 35cefc34): the follow-ups for the Marketplace Packer script path, the App Platform proxy-hop count and plugin directories, plus documentation of the PaaS limitations.
- Corrected the Marketplace build script path —
paca.pkr.hcland its README now reference upstream'sscripts/99-img-check.sh, so the final provisioner resolves instead of aborting the image build. - Fixed App Platform proxy hops —
TRUSTED_PROXY_HOPSis now1, matching the gateway-less topology, with a comment explaining that DigitalOcean reports the ingress server's address inX-Forwarded-For. - Added plugin directories to both PaaS specs —
render.yamland.do/deploy.template.yamlnow point all fourPLUGINS_*_DIRvars at the/plugins*paths the API entrypoint creates and chowns, replacing the root-owned/app/plugins/localdefaults that made installs fail. - Documented PaaS limitations — new "Known limits" sections for App Platform and Render cover plugins, the shared client address, and the unverified RustFS disk, the last with an external-S3 fallback recipe; the duplicated
ENCRYPTION_KEYparagraph in the Render section is removed.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Follow-up to the one-click deploy work. Adds lightweight (managed, no Agent Runner) options next to the existing full-stack VM paths, and reorganises the README so people can pick a provider by what they need.
.do/deploy.template.yaml)render.yaml)Changes
deploy/cloud/aws/paca-lite.cfn.yaml): small VPC, one Fargate task running gateway, API, web and realtime as four containers behind an Application Load Balancer; RDS Postgres, ElastiCache Valkey, S3 bucket; secrets generated in Secrets Manager (the encryption key is forced to 64 hex chars). Optional domain + ACM certificate for HTTPS. Passescfn-lint.publish-template.shandcd.ymlnow upload and attach both templates.deploy/cloud/gcp/deploy-lite.sh,tutorial-lite.md): one Cloud Run service with the same four containers, Cloud SQL, Memorystore, a Cloud Storage bucket (S3 interop through an HMAC key), Secret Manager secrets, and Docker Hub images through an Artifact Registry remote repo. Safe to re-run..do/deploy.template.yaml): API and realtime services plus a Postgres dev database; the React app is a free static site. Needs an external Redis URL (dev databases are Postgres-only) and a Spaces bucket.render.yaml,deploy/render/gateway/Dockerfile): managed Postgres, Key Value, RustFS, API, realtime, Caddy gateway; the web app is a free static site that the gateway proxies to. The gateway Dockerfile patches the Caddyfile to forward the upstream host and fails the build if the line it patches changes.deploy/cloud/digitalocean/marketplace/): Packer template, first-boot script and MOTD, plus a README with build and submission steps. DigitalOcean has no link that pre-fills a cloud-init script, so a true one-click Droplet needs a Marketplace listing; until then the Droplet button opens the guide.docs/deployment/one-click.md): sections and limits for every path.Notes for review
AI_AGENT_INTERNAL_KEY(the API exits at startup without it) and a 64-hexENCRYPTION_KEY.STORAGE_ENDPOINTis set explicitly for S3/GCS. An empty value falls back to the bundled RustFS (env()treats empty as unset), soSTORAGE_PROVIDER=s3alone would still point atrustfs:9000.install.shand the compose file appear to leave it empty for S3, so that may be a separate existing bug; I did not change it here.Before the buttons work
paca-cloudformation, plus either the OIDC role +AWS_ROLE_ARN/AWS_TEMPLATE_BUCKETrepo variables, or a manual run ofpublish-template.sh. Setup steps are in the docs.bootstrap.sh.railway.com/deploy/<code>link.Testing
Not run on any real account. Checked:
cfn-linton the AWS templates, YAML and bash syntax, the GCP Cloud Run spec rendered and parsed locally, and the Render gateway image builds with a valid Caddyfile. Still to verify on real accounts: both lightweight stacks, the App Platform spec (written without an account), the Render blueprint, and the Marketplace image build.