Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update upgrade_guide.md #5585

Merged
merged 9 commits into from
Jan 18, 2023
52 changes: 40 additions & 12 deletions site/content/en/docs/administration/advanced/upgrade_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,53 @@ To upgrade CVAT, follow these steps:
```shell
docker logs cvat_server -f
```

## How to upgrade CVAT from v2.2.0 to v2.3.0.

## How to udgrade CVAT from v1.7.0 to v2.1.0.

Step by step commands how to udgrade CVAT from v1.7.0 to v2.1.0.
Step by step commands how to upgrade CVAT from v2.2.0 to v2.3.0.
Let's assume that you have CVAT v2.2.0 working.
```shell
docker exec -it cvat_db pg_dumpall > cvat.db.dump
cd cvat
docker-compose down
docker volume rm cvat_cvat_db
export CVAT_VERSION="2.3.0"
cd ..
mv cvat cvat_220
wget https://github.com/opencv/cvat/archive/refs/tags/v${CVAT_VERSION}.zip
unzip v${CVAT_VERSION}.zip && mv cvat_${CVAT_VERSION} cvat
cd cvat
export CVAT_HOST=cvat.example.com
export ACME_EMAIL=example@example.com
docker pull cvat/server:v${CVAT_VERSION}
docker tag cvat/server:v${CVAT_VERSION} openvino/cvat_server:latest
vainkop marked this conversation as resolved.
Show resolved Hide resolved
docker pull cvat/ui:v${CVAT_VERSION}
vainkop marked this conversation as resolved.
Show resolved Hide resolved
docker tag cvat/ui:v${CVAT_VERSION} openvino/cvat_ui:latest
vainkop marked this conversation as resolved.
Show resolved Hide resolved
docker-compose up -d cvat_db
docker exec -i cvat_db psql -q -d postgres < ../cvat.db.dump
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.https.yml up -d
vainkop marked this conversation as resolved.
Show resolved Hide resolved
```

## How to upgrade CVAT from v1.7.0 to v2.2.0.

Step by step commands how to upgrade CVAT from v1.7.0 to v2.2.0.
Let's assume that you have CVAT v1.7.0 working.
```shell
export CVAT_VERSION="2.2.0"
cd cvat
docker compose down
docker-compose down
vainkop marked this conversation as resolved.
Show resolved Hide resolved
cd ..
mv cvat cvat_old
wget https://github.com/opencv/cvat/archive/refs/tags/v2.1.0.zip
unzip v2.1.0.zip && mv cvat-2.1.0 cvat
mv cvat cvat_170
wget https://github.com/opencv/cvat/archive/refs/tags/v${CVAT_VERSION}.zip
unzip v${CVAT_VERSION}.zip && mv cvat_${CVAT_VERSION} cvat
cd cvat
docker pull cvat/server:v2.1.0
docker tag cvat/server:v2.1.0 openvino/cvat_server:latest
docker pull cvat/ui:v2.1.0
docker tag cvat/ui:v2.1.0 openvino/cvat_ui:latest
docker compose up -d
docker pull cvat/server:v${CVAT_VERSION}
docker tag cvat/server:v${CVAT_VERSION} openvino/cvat_server:latest
docker pull cvat/ui:v${CVAT_VERSION}
docker tag cvat/ui:v${CVAT_VERSION} openvino/cvat_ui:latest
docker-compose up -d
vainkop marked this conversation as resolved.
Show resolved Hide resolved
```

## How to upgrade PostgreSQL database base image

1. It is highly recommended backup all CVAT data before updating, follow the
Expand Down