目录
Trendz Analytics v1.11.x Docker 升级说明
Upgrading Trendz Analytics to 1.11.2
NOTE: You can upgrade Trendz Analytics from any version to the 1.11.2.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.11.2
|
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.1 set upgradeversion to 1.11.1).
1
| docker compose exec trendz sh -c "echo '1.11.1' > /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.1’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.11.2"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.11.2"
< . . . >
|
Upgrading Trendz Analytics to 1.11.1
NOTE: You can upgrade Trendz Analytics from any version to the 1.11.1.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.11.1
|
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.0 set upgradeversion to 1.11.0).
1
| docker compose exec trendz sh -c "echo '1.11.0' > /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.0’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.11.1"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.11.1"
< . . . >
|
Upgrading Trendz Analytics to 1.11.0
NOTE: You can upgrade Trendz Analytics from any version to the 1.11.0.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.11.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.10.3-HF7 set upgradeversion to 1.10.3-HF7).
1
| docker compose exec trendz sh -c "echo '1.10.3-HF7' > /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.10.3-HF7’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.11.0"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.11.0"
< . . . >
|