Skip to content

Feature/introduce one click deploy - #734

Merged
pikann merged 5 commits into
masterfrom
feature/introduce-one-click-deploy
Nov 13, 2026
Merged

pikann merged 5 commits into
masterfrom
feature/introduce-one-click-deploy

Conversation

@pikann

@pikann pikann commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds one-click deploy paths for AWS, GCP and DigitalOcean, a README button row (AWS → GCP → DigitalOcean → RepoCloud), and a guide at docs/deployment/one-click.md.

Each path creates a single VM that runs the full stack, including the Agent Runner, by calling the existing non-interactive install.sh through a shared bootstrap script. PaaS options (App Platform, Render, Railway) are deliberately left out: the Agent Runner launches agent sandboxes through the host's Docker socket, which those platforms don't expose, so they could only run part of Paca.

How each provider works

Provider Mechanism Button
AWS CloudFormation template: EC2 (Ubuntu 24.04), Elastic IP, security group, SSM role Launch Stack link (needs the S3 setup below)
GCP Cloud Shell tutorial + deploy.sh: static IP, firewall rule, Compute Engine VM Opens Cloud Shell on this repo
DigitalOcean Droplet with a cloud-init script Opens the guide (DigitalOcean has no link that pre-fills cloud-init)

Changes

  • deploy/cloud/bootstrap.sh: first-boot script for a fresh VM. Installs Docker, finds the public IP and runs install.sh with PACA_YES=1. Serves HTTP on the IP, or HTTPS when PACA_DOMAIN is set. Optional ADMIN_PASSWORD, PACA_PUBLIC_IP.
  • deploy/cloud/aws/paca.cfn.yaml: the CloudFormation template. Admin password is validated (8+ characters, no quotes).
  • deploy/cloud/aws/publish-template.sh: manual way to upload the template to S3.
  • deploy/cloud/digitalocean-cloud-init.yaml: user-data for a Droplet.
  • deploy/cloud/gcp/deploy.sh, tutorial.md: Cloud Shell flow. Validates the password up front and is safe to re-run (describe-then-create).
  • .github/workflows/cd.yml: attaches bootstrap.sh and paca.cfn.yaml to releases, and uploads the template to S3 over GitHub OIDC (no stored AWS keys). The upload is skipped until the repo variables below are set.
  • README button row and docs/deployment/one-click.md.

Before the buttons work

  • All three: the VMs download bootstrap.sh from the latest release, so a release that includes it must be published.
  • AWS: create the public-read S3 bucket paca-cloudformation, an IAM OIDC provider and a role limited to s3:PutObject on it, and set the repo variables AWS_TEMPLATE_BUCKET and AWS_ROLE_ARN (steps in the docs). Or run publish-template.sh once by hand.
  • GCP: the Cloud Shell link clones the default branch, so this needs to be merged first.

Testing

Not yet run on any real account. Checked so far: YAML and bash syntax parse. Still to verify: the CloudFormation stack, the GCP script in Cloud Shell, and the DigitalOcean cloud-init on a Droplet.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Both new PaaS blueprints fail before Paca can start: neither sets AI_AGENT_INTERNAL_KEY, which the API requires unconditionally, and the DigitalOcean template asks for a Valkey dev database that App Platform does not offer. The VM paths look sound apart from the AWS AdminPassword validation gap and a broken URL in the bootstrap log.

Reviewed changes

  • DigitalOcean App Platform blueprint (.do/deploy.template.yaml) — three Docker Hub services behind App Platform ingress with Spaces-backed storage.
  • Render blueprint (render.yaml, deploy/render/gateway/Dockerfile) — Postgres, Key Value, RustFS on a disk, three private services and a Caddy gateway as the public entrypoint.
  • VM bootstrap (deploy/cloud/bootstrap.sh, digitalocean-cloud-init.yaml) — installs Docker, resolves the public address, then runs the released install.sh non-interactively.
  • AWS CloudFormation (deploy/cloud/aws/paca.cfn.yaml, publish-template.sh) — EC2 + Elastic IP + SSM role behind a Launch Stack button.
  • Release plumbing (cd.yml) — ships bootstrap.sh and paca.cfn.yaml, and uploads the template to S3 via GitHub OIDC.
  • Docs (README.md, docs/deployment/one-click.md) — buttons and maintainer setup for all five provider paths.

ℹ️ Plugin assets have nowhere to be served from on the PaaS paths

The shared gateway Caddyfile serves /plugins, /plugins-mcp and /plugins-skills out of volumes that the API fills at install time, but the Render gateway image only bakes in the Caddyfile and App Platform has no gateway at all. Installing a plugin therefore leaves its frontend/MCP/skill bundles 404ing (the SPA fallback serves index.html), and with the default PLUGINS_STORE=local the files also disappear on the next restart. Either document plugins as unsupported on these two paths or point PLUGINS_STORE at the object store and add a route that serves the bundles.

Technical details
# Plugin bundles are unreachable on Render and DO App Platform

## Affected sites
- `deploy/caddy/Caddyfile:60-95` — `/plugins*`, `/plugins-mcp/*` and `/plugins-skills/*` are served from `/var/www/plugins*`.
- `deploy/docker-compose.prod.yml:331-334, 376-378` — those paths are named volumes populated by the API and mounted read-only into the gateway.
- `deploy/render/gateway/Dockerfile:5` — only `deploy/caddy/Caddyfile` is copied into the new gateway image; no plugin directories exist there.
- `.do/deploy.template.yaml` — no component or ingress rule serves `/plugins*`; the `web` service answers `/` and its Caddyfile falls back to `index.html`.
- `services/api/internal/config/load.go:232` and `services/api/docker-entrypoint.sh` — the default `PLUGINS_STORE=local` writes bundles into the container filesystem (`/plugins*`), which is ephemeral on both platforms.

## Required outcome
- A user who installs a plugin from the marketplace on either path either gets working assets, or the docs explicitly list plugins as unsupported there.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Comment thread render.yaml Resolved
Comment thread render.yaml Resolved
Comment thread .do/deploy.template.yaml Resolved
Comment thread .do/deploy.template.yaml Resolved
Comment thread .do/deploy.template.yaml Resolved
Comment thread deploy/cloud/bootstrap.sh Resolved
Comment thread deploy/cloud/aws/paca.cfn.yaml Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ GCP path reviewed — two rough edges inline. The blocking findings from the previous review (missing AI_AGENT_INTERNAL_KEY in both blueprints, and the Valkey dev database in .do) still stand.

Reviewed changes

  • GCP deploy script (deploy/cloud/gcp/deploy.sh) — enables the Compute API, reserves a regional static IP, opens 80/443 with a target-tagged firewall rule, and creates an Ubuntu 24.04 e2-standard-2 VM whose startup script runs bootstrap.sh with the reserved IP.
  • GCP tutorial (deploy/cloud/gcp/tutorial.md) — Cloud Shell walkthrough for the script.
  • Docs wiring — README GCP badge and footnote, plus the provider table row and GCP section in docs/deployment/one-click.md.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Comment thread deploy/cloud/gcp/deploy.sh Resolved
Comment thread deploy/cloud/gcp/deploy.sh Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Fixed both PaaS blueprints' startup blockers: .do/deploy.template.yaml and render.yaml now supply AI_AGENT_INTERNAL_KEY, and both prompt for ENCRYPTION_KEY.
  • Replaced the unsupported App Platform Valkey dev database with an externally supplied REDIS_URL secret and documented the extra Valkey/Redis setup step.
  • Tightened the AWS AdminPassword parameter to require 8+ characters when supplied, while keeping the empty auto-generate default valid.
  • Made the GCP script retry-safe with describe-then-create for the static address and firewall rule, plus explicit ADMIN_PASSWORD validation and an instance-exists guard.
  • Fixed the bootstrap.sh completion URL to derive its scheme from PACA_HTTPS.
  • Made the Render Postgres private by default with ipAllowList: [].
  • Updated the .do header and one-click docs for the external cache requirement, the new secret keys, and Railway ENCRYPTION_KEY generation.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Removed the Render blueprint and its gateway Dockerfile, plus the DigitalOcean App Platform spec, leaving only the AWS, GCP and DigitalOcean VM paths.
  • Rewrote the one-click docs around the three VM deployments, with a provider table, a "Why only VMs" rationale and the AWS maintainer-setup section.
  • Updated the README button row to AWS/GCP/DigitalOcean and pointed the DigitalOcean badge at the Droplet guide instead of the deleted App Platform template.
  • Verified nothing else references the deleted files (workflows, scripts and docs are clean) and that the #digitalocean-droplet anchor matches the new heading.

ℹ️ The PR description still advertises the removed Render and App Platform paths

The body still lists Render and Railway in its summary table, includes .do/deploy.template.yaml and render.yaml in its change list, and keeps a Railway item under "Before the buttons work". It is now the only place that presents those paths as supported, so it is worth updating to the three VM paths so the merged PR does not contradict its own code.

Technical details
# Stale PR description

## Affected sites
- PR #734 body — provider table still lists Render and Railway; "Changes" still lists `.do/deploy.template.yaml`, `render.yaml` and `deploy/render/gateway/Dockerfile`; "Before the buttons work" still has a Railway step.

## Required outcome
- The description names only AWS, GCP and DigitalOcean, and its file list matches the nine files actually changed.

## Suggested approach (optional)
- Edit the PR body; no code changes are needed.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit f1da1d0 into master Nov 13, 2026
1 check passed
@pikann
pikann deleted the feature/introduce-one-click-deploy branch November 13, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant