目录
Trendz Analytics v1.12.x Docker 升级说明
Upgrading Trendz Analytics to 1.12.0
NOTE:
After upgrading it is required to update Trendz widget bundle in ThingsBoard. You can find detailed instructions how to do that via Trendz UI in Trendz Widget Bundle upgrade article.
You can upgrade Trendz Analytics from any version to the 1.12.0.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.12.0
|
Trendz Analytics service upgrade
- Create a dump of your database:
1
| docker compose exec postgres sh -c "pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump"
|
If you still rely on Docker Compose as docker-compose (with a hyphen) execute next command:
docker-compose exec postgres sh -c “pg_dump -U postgres trendz > /var/lib/postgresql/data/trendz_dump”
- Stop Trendz Analytics
trendz container if it is running.
1
| docker compose stop trendz
|
- Set upgradeversion variable to your previous Trendz Analytics version (if you`re upgrading from 1.11.2 set upgradeversion to 1.11.2).
1
| docker compose exec trendz sh -c "echo '1.11.2' > /data/.upgradeversion"
|
If you still rely on Docker Compose as docker-compose (with a hyphen) execute next command:
docker-compose exec mytrendz sh -c “echo ‘1.11.2’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.12.0"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.12.0"
< . . . >
|