Skip to content

feat: Vultr Marketplace imageless listing for Trinity (cloud-init Vendor Data) #2282

Closed

Description

@vybe

Summary

List Trinity on the Vultr Marketplace as an imageless app — a clean-OS + cloud-init "Vendor Data" provisioning script (the form Vultr itself recommends) — so Vultr users get a running Trinity in one click.

Context

Vultr's vendor program is free, explicitly takes no revenue share, and the imageless path is essentially the existing trinity-ops-public/provision/cloud-init.sh plus the unattended start: no snapshot to maintain, script updated in place. Coolify and OpenClaw are already listed there (Docker-socket workloads accepted). Cheapest listing in the field once the pull-only images exist (#2280).

Acceptance Criteria

  • "Become a Verified Vendor" application submitted and approved; Vendor Portal app profile created (icons, categories, support contact, gallery 800×500).
  • Imageless provisioning script: installs Docker, pulls the hosted compose, reads app variables (auto-generated admin password etc.) from the Vultr metadata API, starts Trinity unattended, writes post-deploy notes.
  • Private test deploy passes on a ≥8 GB plan; listing text recommends 8 GB minimum (Vultr cannot enforce plan size — say it loudly).
  • Made public and approved by Vultr's review; "Deploy on Vultr" badge added to the README once live.
  • Update runbook: how the script tracks Trinity releases (pinned image tag bump per release).

Technical Notes

  • Vultr docs: docs.vultr.com/vultr-marketplace (build guide + reference). Build/test on the dedicated marketplace-2c-2gb plan only if going the snapshot route; imageless avoids it.
  • Their vendor legal page was not readable during research (403 to fetchers) — confirm obligations in a browser before submitting.

Activity

  1. added
    priority-p2
    type-feature
    theme-infrastructure
    complexity-low
    status-ready
    on Aug 18, 2026
  2. added
    complexity-medium
    and removed
    complexity-low
    on Sep 2, 2026
  3. obasilakis commented on Sep 11, 2026

    @obasilakis
    Contributor

    The gate is met, and most of this ticket already exists as DigitalOcean code (survey, 2026-09-11)

    #2280 has landed on dev: docker-compose.hosted.yml pulls only, start.sh --hosted --unattended never prompts, and the five images are public on GHCR (anonymous pull verified; measurements on #2280). The DigitalOcean bundle in packer/digitalocean/ is, in effect, a working reference implementation of this ticket's provisioning script — built for a snapshot, but the per-instance half is almost entirely provider-neutral.

    What the backend already accepts

    vultr-marketplace is a recognised install source today — no backend work needed for provenance:

    So the script writes TRINITY_INSTALL_SOURCE=vultr-marketplace into .env and the hardening guide, the Settings panel and /api/version all light up with nothing further to change.

    Reuse map

    packer/digitalocean/files/opt/trinity-firstboot/firstboot.sh is 230 lines and portable except for six points:

    Line DO-specific Vultr equivalent
    87 http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address Vultr's metadata API — verify the exact path and response shape first
    94 IMAGE_TAG read from /etc/trinity/baked-image-tag, written by the Packer build imageless has no bake — pin the tag in the script (see the latest note below)
    18, 35-38 admin password arrives as a #cloud-config write_files drop, because a DO 1-Click has no input form Vultr does have app variables — this is the ticket's own AC, and the unknown worth clearing first
    131 TRINITY_INSTALL_SOURCE=do-marketplace vultr-marketplace (already accepted, above)
    3 invoked from /var/lib/cloud/scripts/per-instance/001-trinity Vendor Data / vendor startup script
    — Caddy, Docker and the repo are present because the snapshot baked them must be installed at boot (below)

    Everything else carries over unchanged and is worth carrying over rather than rewriting, because each piece encodes a failure already paid for: the password generation that does not die on SIGPIPE under pipefail, the .env writer that rewrites lines instead of sed-substituting user-controlled values into them, the DOCKER-USER DROP rules that close the Docker-past-ufw gap, and the Caddy certificate verification poll (without it, a TLS failure is silent and the MOTD still prints a confident https:// URL).

    packer/digitalocean/scripts/01-provision.sh (176 lines) is the part that moves: for imageless, its work — Docker CE repo + install, Caddy 2.11.4 pin (the floor for IP certificates), git clone --depth 1 --branch <tag>, and pre-pulling the images — has to happen at boot rather than at build time.

    The cost of imageless, measured

    That relocation is the whole design tradeoff, and it has a number: first boot pulls ~1.6 GB (1.43 GB ours + ~170 MB third-party; per-image table on #2280) plus the Docker/Caddy apt install, against a DO snapshot where first boot pulls nothing. Expect minutes-to-serving, not the ~2 minutes the snapshot path gives.

    Worth it anyway, and this is what makes Vultr the cheapest lane: no snapshot to build, review, re-submit, or keep in sync per release — the script is updated in place. The cost is paid once per customer boot; the snapshot cost is paid by us every release. But the listing copy and any post-deploy notes must say the instance is still provisioning, or the first impression is a dead console.

    Two things to verify before writing a line

    1. App variables. The AC assumes the admin password can be read from the Vultr metadata API. Confirm the endpoint and that vendor-defined variables actually surface there; if they do not, fall back to the DO shape (generate at boot, print in the MOTD) — that path is already written and tested.
    2. Vendor terms. This ticket already records that Vultr's vendor legal page returned 403 to fetchers during research. Read it in a browser before submitting. Per the ent#464 precedent, the vendor-account and commercial half belongs in a private issue, not here — this ticket stays engineering.

    Ordering note

    Until v0.9.5 is cut to main, GHCR has no latest tag and docker-compose.hosted.yml is not on main (details on #2280). Neither blocks development: clone a tag and pin TRINITY_IMAGE_TAG explicitly, which is what a marketplace script should do anyway — an unpinned latest means a customer booting during a release gets a half-published set.

    Start the vendor application in parallel with the script. On the DigitalOcean lane, approval — not code — was the long-lead item.

  4. removed
    status-ready
    on Sep 22, 2026
  5. obasilakis commented on Sep 22, 2026

    @obasilakis
    Contributor

    /claim

  6. added
    status-in-progress
    on Sep 22, 2026
  7. github-actions commented on Sep 22, 2026

    @github-actions

    Claimed by @obasilakis. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/2282-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #2282
  8. obasilakis commented on Sep 22, 2026

    @obasilakis
    Contributor

    Vendor application: step by step

    This comment is the checklist for the Vultr half of this ticket, the part that is not code. Everything below comes from Vultr's vendor docs (docs.vultr.com/platform/marketplace-vendor/*). Anything the docs do not state is marked not documented; ask Vultr and record the answer. Commercial terms and account ownership go on the private tracker (ent#464 precedent), not here.

    1. Apply to become a verified vendor

    2. Once approved: create the vendor user

    • Console → Marketplace → choose a vendor username → Create User.
    • Optional vendor settings: Website, X handle, Git URL, Slack URL.

    3. Create the app profile

    Field Value
    App Name Trinity
    App Name ID trinity (URL-safe, not generated for you)
    Repo URL https://github.com/abilityai/trinity
    Support Email / Support URL the team's support address / issues URL (at least one is required to go public)
    Operating System Ubuntu 24.04 x64. start.sh --provision installs Docker from Docker's Ubuntu apt repo, so the base must be Ubuntu.
    Description one line
    Readme Markdown marketing page (can reuse packer/digitalocean/listing.md)
    Categories up to 7

    4. Artwork

    • Two icons, light mode and dark mode, square, at least 100×100. packer/digitalocean/logo.png (1024×1024) covers one; the dark variant can come from docs/assets/trinity-logo-white.svg.
    • Gallery images: 800×500 recommended (8:5; narrower images are rejected with "Not wide enough"), JPG, PNG or GIF.

    5. App variables: none

    The first visitor creates the admin in the browser at /setup (trinity-enterprise#580, "DigitalOcean today, Vultr next"), so there is no password to generate. For reference if one is ever needed: names are snake_case, at most 15 characters. They are read on the instance from http://169.254.169.254/v1/internal/app-<name> with the header METADATA-TOKEN: vultr. The metadata service serves them to every host process for the life of the machine (trinity-enterprise#622 item 2).

    6. App instructions

    Markdown (H2–H6, tables, code). The placeholders are {{ip}} and `{{root_password}}`. The final text ships in the PR alongside the Vendor Data script. It must say:

    • Trinity takes roughly 10 minutes after the server shows Running: first boot installs Docker and pulls about 1.6 GB of images.
    • Open https://{{ip}}. The first visitor creates the admin, so do it right away.
    • 8 GB RAM minimum. Vultr cannot enforce a plan size, so say it loudly.
    • If the page is not up after 15 minutes: ssh root@{{ip}} and read /var/log/trinity-install.log.

    7. Build from Vendor Data

    • App → Builds → Build from Vendor Data → base OS Ubuntu 24.04 → paste scripts/deploy/vultr-vendor-data.sh from a release tag, not from dev.
    • The script runs once, as root, as a cloud-init per-instance script at first boot. It resolves the latest stable release itself (releases/latest, which excludes RCs), so it carries no version and needs no re-paste per release.

    8. Test privately before publishing

    • Build → Deploy Image. This pre-selects the private build. Pick a plan with at least 8 GB.
    • Pass means:
      • /var/log/trinity-install.log ends with === Trinity is ready at https://<ip> ===.
      • https://<ip> serves with a valid certificate.
      • /setup creates the admin.
      • The first agent can be created.
      • Settings shows install source "Vultr Marketplace".
    • Record the result on this issue.

    9. Publish and go public

    • Publish the build. Only one build can be Live, so unpublish the old one first.
    • Set the URL slug (trinity; the landing page is https://www.vultr.com/marketplace/apps/trinity).
    • Make app public. This starts Vultr's review: the app shows review-pending, and Vultr emails approval or change requests. Prerequisites: at least one published build, both icons, description, README, instructions, and a support email or URL.
    • Not documented: review timeline.

    10. After it is live

    • Add a "Deploy on Vultr" badge to the README (this ticket's AC).
    • Per Trinity release: nothing. The script resolves the release at boot, so a new release reaches Vultr customers on their next deploy with no portal change. Re-paste only when the script itself changes, and re-test as in step 8 when you do.
    • The full runbook, the listing copy and the App Instructions text live in scripts/deploy/vultr-marketplace.md.
  9. obasilakis commented on Sep 23, 2026

    @obasilakis
    Contributor

    Two ACs changed by later decisions — recording them before the PR

    Both were written on 2026-08-18, before the decisions that overtake them.

    AC #2 — no app variables, no generated admin password

    The AC asks the script to read "app variables (auto-generated admin password etc.) from the Vultr metadata API". ent#580 (2026-09-10) replaced that for marketplace installs and names this lane in its own summary: "DigitalOcean today, Vultr next". The first person to open the instance registers the admin in the browser at /setup.

    The build follows ent#580: no app variables at all, ADMIN_PASSWORD_SOURCE=browser, nothing generated. Two reasons beyond consistency with the DigitalOcean lane:

    • Vultr's metadata service serves app variables to every process on the host for the life of the machine — the ent#622 item-2 exposure, in a fresh place.
    • /setup also collects the admin email and product-updates consent. A pre-provisioned admin closes that wizard and neither is ever collected.

    The rest of AC #2 is unchanged and met: install Docker, run the pull-only compose, start unattended, write post-deploy notes.

    Confirmed while building this: app variables do surface on the metadata API, at http://169.254.169.254/v1/internal/app-<name> with header METADATA-TOKEN: vultr, and password variables are auto-generated per deployment. So the AC was achievable — it is being dropped on the ent#580 decision, not on a blocker. Reinstating it later is a few lines.

    AC #5 — the script resolves its release instead of pinning one

    The AC says "pinned image tag bump per release". The script instead resolves releases/latest at boot, which excludes the RCs /release cuts with --prerelease.

    The reason is that the copy which actually runs lives in Vultr's portal, not in this repo. A literal here would be a pin nothing can enforce: a VERSION test guards the repo copy only, and mid-cycle it would force an RC tag into the file. Unpinned also removes the per-release portal chore entirely — a new release reaches Vultr customers on their next deploy.

    The trade, accepted deliberately: Vultr reviews one build while customers get later releases, and an install started in the window between a release being tagged and its images finishing publication fails and has to be retried.

    Also confirmed

    http://169.254.169.254/v1/interfaces/0/ipv4/address is a documented plain-text endpoint, no authentication and no header, so the pre-install IP read needs nothing but curl. Still to check on a live instance: whether interface 0 is still the public one when a VPC is attached, and IPv6-only plans, where it returns nothing (the listing states IPv4 is required).

  10. obasilakis commented on Sep 23, 2026

    @obasilakis
    Contributor

    Live boot test on Vultr — pass, with one sequencing constraint

    Instance: vc2-4c-8gb (4 vCPU / 8 GB), Ubuntu 24.04 x64 (os_id 2284), Frankfurt, script delivered as cloud-init user data. Destroyed after the run.

    The constraint the test surfaced

    The very first boot failed, correctly:

    ❌ --provision: unsupported --cloud 'vultr' (supported: digitalocean).
    === Trinity first boot FAILED (exit 1) ===
    

    The script resolved releases/latest → v0.9.5 and cloned it, and v0.9.5's start.sh has no --cloud vultr. So: the listing cannot be published until a release contains Vultr support. Publishing earlier gives every customer that exact failure. The build can be created and privately tested before then only by overriding the ref.

    That is also the unpinned design working as intended — the box installs the released Trinity, not whatever is on a branch.

    Verified on the re-run (branch checkout, released images)

    Check Result
    First boot start → serving 3m43s (13:58:49Z → 14:02:32Z)
    /v1/interfaces/0/ipv4/address returns the public IPv4, plain text, no header — premise confirmed
    /v1/interfaces/0/network-type public, and a stock instance has exactly one interface (so the VPC caveat is the only open one)
    Stock image tooling curl, git, jq, python3 all preinstalled — the code comment claiming "no jq" was wrong and is corrected; the plain-text path stays, since the read precedes every install
    HTTPS on the bare IP 200, chain verifies, Let's Encrypt short-lived cert (7-day validity)
    http:// 308 → https://
    .env TRINITY_INSTALL_SOURCE=vultr-marketplace, TRINITY_IMAGE_TAG persisted, ADMIN_PASSWORD= empty, ADMIN_PASSWORD_SOURCE=browser
    Containers 7 up and healthy (backend, frontend, mcp-server, scheduler, redis, vector, otel)
    Agent base image trinity-agent-base:latest 3.08 GB, retagged locally as start.sh --hosted must
    DOCKER-USER → TRINITY-FW present, with the 169.254.0.0/16 DROP
    Container → metadata blocked (times out from trinity-agent-network); host reads it fine — PROV-013 holds on Vultr
    Browser admin claim /api/setup/status → setup_completed:false before, true after; POST /api/setup/admin-password succeeded; login works
    Provenance in-app /api/version and /api/settings/feature-flags both report install_source: vultr-marketplace, and hardening_guide_eligible: true
    Login banner correct in all three states — installing, ready-and-unclaimed, ready-and-claimed
    Failure path the EXIT trap wrote /etc/trinity/firstboot-failed and the banner showed the retry command
    Plan warning absent on 8 GB, as expected

    Not verified

    • Creating an agent. The instance had no model credential, and this is not Vultr-specific — the part unique to this lane (the agent base image being pulled and retagged locally, which compose cannot do) is confirmed present.
    • A VPC attached, i.e. whether interface 0 stays public with a second interface. Stock deploys have one interface.
    • IPv6-only plans, where the IPv4 endpoint returns nothing. The listing states IPv4 is required.

    Two things changed as a result

    • The listing copy and PROV-017 now carry the measured ~4 minutes instead of the ~10 estimated from image sizes.
    • /var/log/trinity-install.log is appended across attempts, so an old FAILED line sits above a later success. The runbook now points at the state markers (/etc/trinity/ready vs firstboot-failed), which the script clears on entry.
  11. obasilakis commented on Oct 1, 2026

    @obasilakis
    Contributor

    Database backend: PostgreSQL. SQLite reached end-of-support on 2026-09-01 (#1278). New installs from any one-click channel must start on PostgreSQL.

    vultr-vendor-data.sh hands off to start.sh --provision, so Vultr picks up PostgreSQL from #3159 with no Vultr-specific code. Being imageless, it inherits the change on the first release that contains #3159.

    Added acceptance criterion:

  12. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 8, 2026
  13. obasilakis commented on Oct 21, 2026

    @obasilakis
    Contributor

    Listing set up and release test passed. App submitted for Vultr review.

    Vendor: approved. Vendor user Ability-AI created. App profile trinity filled in: Ubuntu 24.04 x64, VPS only, minimum 4 vCPU / 8 GB, categories, support URL and email, light and dark icons, four gallery images, Readme, App Instructions, no app variables.

    Build 1.0.0: Vendor Data, with the script pasted from the v1.0.0 tag. Published, and the app set to public.

    Private deploy on v1.0.0

    Plan: 4 vCPU / 8 GB / 169 GB, New York.

    Check Result
    Install log ends === Trinity is ready at https://<ip> ===, /etc/trinity/ready present
    Release resolved v1.0.0 (/etc/trinity/release, TRINITY_IMAGE_TAG=v1.0.0)
    Containers 8 healthy, including trinity-postgres (postgres:16-alpine)
    Database DATABASE_URL=postgresql://…@postgres:5432/trinity, alembic_version = 0100_admin_email_not_username, no trinity.db under /data, backend logs "PostgreSQL backend manages autovacuum"
    HTTPS Let's Encrypt (YE2) certificate for the IP, verifies with strict curl
    Admin claim /api/setup/status shows setup_completed:false before; admin created in the browser
    Provenance Settings → Build Info shows install source "Vultr Marketplace" (vultr-marketplace), version 1.0.0, commit ef8112ee
    Plan minimum plans below the minimum are blocked at deploy

    This covers the PostgreSQL criterion added on 2026-10-01. The test server has been destroyed.

    Portal behaviour the runbook gets wrong

    • Deploying a build that is not published fails with "Unable to determine a source snapshot for this subscription". Publish the build first. A published build on a private app is not visible to customers.
    • Deployable Permissions starts with nothing selected. VPS must be enabled, or every deploy fails with "This Marketplace App is unable to be deployed to a VPS".
    • Vultr enforces the plan minimum through the app's Minimum CPU and RAM settings. The "Vultr cannot enforce a plan size" line in scripts/deploy/vultr-marketplace.md and in the App Instructions is wrong.

    Still open

    • Vultr's review of the public app.
    • "Deploy on Vultr" README badge, to add once the review is approved.
    • Runbook corrections for the three points above.
  14. removed
    status-in-dev
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-mediumpriority-p2theme-infrastructuretype-feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions