Your development application runs locally on docker and its resources are defined in the infra/dev_resources.py file. This guide shows how to:
  1. Build a development image
  2. Restart all docker containers
  3. Recreate development resources

Infra Settings

The InfraSettings object in the infra/settings.py file defines common settings used by your Agno Infra apps and resources.

Build your development image

Your application uses the agno docker images by default. To use your own image:
  • Open infra/settings.py file
  • Update the image_repo to your image repository
  • Set build_images=True
infra/settings.py
infra_settings = InfraSettings(
    ...
    # -*- Image Settings
    # Repository for images
    image_repo="local",
    # Build images locally
    build_images=True,
)

Build a new image

Build the development image using:
ag infra up --env dev --infra docker --type image
To force rebuild images, use the --force or -f flag
ag infra up --env dev --infra docker --type image --force

Restart all containers

Restart all docker containers using:
ag infra restart --env dev --infra docker --type container

Recreate development resources

To recreate all dev resources, use the --force flag:
ag infra up -f