Your development application runs locally on docker and its resources are defined in the workspace/ file. This guide shows how to:

  1. Build a development image
  2. Restart all docker containers
  3. Recreate development resources

Workspace Settings

The WorkspaceSettings object in the workspace/ file defines common settings used by your workspace apps and resources.

Build your development image

Your application uses the phidata images by default. To use your own image:

  • Open workspace/ file
  • Update the image_repo to your image repository
  • Set build_images=True
ws_settings = WorkspaceSettings(
    # -*- Image Settings
    # Repository for images
    # Build images locally

Build a new image

Build the development image using:

phi ws up --env dev --infra docker --type image

To force rebuild images, use the --force or -f flag

phi ws up --env dev --infra docker --type image --force

Restart all containers

Restart all docker containers using:

phi ws restart --env dev --infra docker --type container

Recreate development resources

To recreate all dev resources, use the --force flag:

phi ws up -f