Skip to content

App Deployment #8

@danhunsaker

Description

@danhunsaker
  • CLI tool performs the following steps:
    • look up the data warehouse service in the target app
    • upload or sync the deployable code under /app
    • upload or sync the contents of /data
    • register a new deploy with the Core
  • Remove oldest deploy(s) until only the configured amount remain

The above steps are skipped if a redeploy is triggered from the user's dashboard.

  • Process boxfile to determine what components to create/update
  • Install latest images for each component on the server(s) it will be created on
  • Create new containers for the new components (data components in the first pass, if applicable; code components in a second pass afterward)
  • Configure new containers
    • Migrate data between data containers
    • Install deploy contents in code containers
    • Run transform hooks in code containers
    • Make /app and its contents read-only, except where marked writable
  • Start new containers
  • Run before_live hooks in new containers
  • Redirect traffic to new containers
  • Stop old containers
  • Remove old containers
  • Run after_live hooks in new containers

  • List of recent deploys is available in user's dashboard
  • User can redeploy any available deploy, and redeploys of still-available deploys are also shown in the dashboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions