Skip to content

Fly dashboard launch: pull the released app image instead of building on Fly's deployer #3914

Done

Description

@integry

Problem

The repository fly.toml (used by Fly's dashboard "Launch from GitHub") builds docker/Dockerfile.app.prod on Fly's remote deployer. In two dashboard launches on 2026-11-30, the deployer stayed on Build image for 20+ minutes and never produced a release, so no Machine was created. Even when the build works, it adds several minutes to the first launch.

A release already publishes the same image to Docker Hub (propr/app:<version>, built by scripts/build-images.sh from docker/Dockerfile.app.prod), so the dashboard launch can pull it instead of building.

Requested change

  1. packages/cli/src/commands/deploy/flyLaunchToml.ts: emit [build] image = "docker.io/propr/app:<version>" instead of dockerfile = ..., where <version> is the root package.json version. Keep the [processes] entrypoint (scripts/fly-launch-entrypoint.sh is in the image).
  2. Regenerate fly.toml with packages/cli/scripts/render-fly-launch-toml.ts; update its header comment ("Pulls the released app image…").
  3. Keep it in step with releases: the release-preparation step that bumps package.json/CHANGELOG.md must regenerate fly.toml, and a test fails when the fly.toml image tag differs from the package.json version.
  4. Document a build-from-source path for forks and unreleased branches (for example fly deploy --dockerfile docker/Dockerfile.app.prod) in docs/docs/tutorials/setup-fly.md.
  5. Note in the docs that the dashboard launch deploys the version named in fly.toml on the chosen branch, so main gets the latest release.

Acceptance

  • fly.toml on the branch names docker.io/propr/app:<package.json version>, with no dockerfile key.
  • Tests cover the generator output and the version check.
  • Before the 0.9.4 tag exists the image does not exist yet; that is expected. The live check (a dashboard launch that pulls the image and reaches the setup wizard without a build) happens after the release.

Activity

  1. propr-dev commented on Nov 30, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3914/gpt-6.2-sol-fly-dashboard-launch-pull-20261130-1241-9w5
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3914-20261130-1241-gpt-6.2-sol-9w5

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3915, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions