目录
Trendz Analytics v1.10.x Docker 升级说明
Upgrading Trendz Analytics to 1.10.3-HF7
NOTE: You can upgrade Trendz Analytics from any version to the 1.10.3-HF7.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.10.3-HF7
|
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 set upgradeversion to 1.10.3).
1
| docker compose exec trendz sh -c "echo '1.10.3' > /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’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.10.3-HF7"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.10.3-HF7"
< . . . >
|
Upgrading Trendz Analytics to 1.10.3
NOTE: You can upgrade Trendz Analytics from any version to the 1.10.3.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.10.3
|
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.2 set upgradeversion to 1.10.2).
1
| docker compose exec trendz sh -c "echo '1.10.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.10.2’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.10.3"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.10.3"
< . . . >
|
Upgrading Trendz Analytics to 1.10.2
NOTE: You can upgrade Trendz Analytics from any version to the 1.10.2.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.10.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.10.1 set upgradeversion to 1.10.1).
1
| docker compose exec trendz sh -c "echo '1.10.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.10.1’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.10.2"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.10.2"
< . . . >
|
Upgrading Trendz Analytics to 1.10.1
NOTE: You can upgrade Trendz Analytics from any version to the 1.10.1.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.10.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.10.0 set upgradeversion to 1.10.0).
1
| docker compose exec trendz sh -c "echo '1.10.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.10.0’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.10.1"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.10.1"
< . . . >
|
Upgrading Trendz Analytics to 1.10.0
NOTE: You can upgrade Trendz Analytics from any version to the 1.10.0.
Trendz Analytics image download
Download Trendz Analytics Docker image:
1
| docker pull thingsboard/trendz:1.10.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.9.2-HF3 set upgradeversion to 1.9.2-HF3).
1
| docker compose exec trendz sh -c "echo '1.9.2-HF3' > /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.9.2-HF3’ > /data/.upgradeversion”
- Update
docker-compose.yml:
1
2
3
4
5
6
| < . . . >
trendz:
image: "thingsboard/trendz:1.10.0"
trendz-python-executor:
image: "thingsboard/trendz-python-executor:1.10.0"
< . . . >
|