Your development application runs locally on docker and its resources are defined in the workspace/dev_resources.py 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/settings.py 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/settings.py file
  • Update the image_repo to your image repository
  • Set build_images=True
workspace/settings.py
ws_settings = WorkspaceSettings(
    ...
    # -*- Image Settings
    # Repository for images
    image_repo="local",
    # Build images locally
    build_images=True,
)

Build a new image

Build the development image using:

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


Restart all containers

Restart all docker containers using:


Recreate development resources

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