Upgrade

📘

Quickstart Upgrade

This guide shows how to upgrade AI GO! that was set up following the deployment guide.

Prerequisites

The upgrade process for LatticeFlow AI GO! has the same prerequisites as the deployment process.

Step 1: Login to Docker Registry

AI GO! is a containerized application. To gain access to Docker images, login into the LatticeFlow AI's Docker registry using your Docker credentials. You can skip this step if you already logged in with valid credentials.

docker login registry.gitlab.com -u <username> -p <password>

Step 2: Backup Configuration

Create a backup of docker-compose.yaml and .env files created during the initial deployment or previous upgrade. To do so, navigate to the directory with those files and run the following commands.

cp docker-compose.yaml docker-compose.yaml.backup_$(date +"%Y%m%d_%H%M")
cp .env .env.backup_$(date +"%Y%m%d_%H%M")
cp init-kc-db.sh init-kc-db.sh.backup_$(date +"%Y%m%d_%H%M")

Step 3: Update Version

  1. In the .env file, set the LF_VERSION variable to latest AI GO! version.
  2. Fetch the latest deployment files, by running the following command in the directory with the .env file:
source .env  # If using `/bin/sh` shell, then use: . $PWD/.env
wget -O docker-compose.yaml https://cdn.latticeflow.cloud/_aigo/releases/$LF_VERSION/docker-compose.yaml
wget -O init-kc-db.sh https://cdn.latticeflow.cloud/_aigo/releases/$LF_VERSION/init-kc-db.sh

Step 4: Deploy

To launch the updated version, run the following command in the directory with the .env and docker-compose.yml files.

source .env
docker compose stop  # Stop the current deployment.
docker compose pull  # Pull the latest container images.
docker compose up --detach  # Restart the deployment with the upgraded container.