Skip to content

feat: Add setup command to bootstrap infrastructure #97

@nfebe

Description

@nfebe

Summary

Add a flatrun-agent setup CLI command that bootstraps infrastructure
(nginx, etc.) from embedded templates on first install.

Motivation

Currently the installer manually fetches templates via the API and
creates deployments. This requires a temporary API key, waiting for
the agent to be healthy, and multiple curl calls. A built-in setup
command would simplify installation and make the agent self-sufficient.

Proposed behavior

flatrun-agent setup --config /etc/flatrun/config.yml
  • Reads config to determine deployments path
  • Deploys infra/nginx template (compose + config files) to
    $DEPLOYMENTS_PATH/nginx/
  • Runs docker compose up -d
  • Idempotent — skips if already deployed

Context

Related installer issue to consume this once available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions