Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions _includes/docs/pe/user-guide/install/docker-upgrade-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@

2. Execute the following commands:


{% if include.skipUpgrade %}
```bash
docker pull thingsboard/tb-pe-node:{{ current_version }}
docker pull thingsboard/tb-pe-web-report:{{ current_version }}
docker compose stop thingsboard-pe
docker compose up -d
```
{: .copy-code}

```bash
docker pull thingsboard/tb-pe-node:{{ current_version }}
docker pull thingsboard/tb-pe-web-report:{{ current_version }}
docker compose stop thingsboard-pe
docker compose up -d
```
{: .copy-code}

{% else %}
```bash
docker pull thingsboard/tb-pe-node:{{ current_version }}
docker pull thingsboard/tb-pe-web-report:{{ current_version }}
docker compose stop thingsboard-pe
docker compose run --rm -e UPGRADE_TB=true thingsboard-pe
docker compose up -d
```
{: .copy-code}

```bash
docker pull thingsboard/tb-pe-node:{{ current_version }}
docker pull thingsboard/tb-pe-web-report:{{ current_version }}
docker compose stop thingsboard-pe
docker compose run --rm -e UPGRADE_TB=true thingsboard-pe
docker compose up -d
```
{: .copy-code}

{% endif %}
30 changes: 15 additions & 15 deletions _includes/docs/pe/user-guide/install/new-docker-upgrade-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ If you are upgrading from version {{ previous_version }}, you must run the scrip

2. Execute the following commands:

```bash
docker pull thingsboard/tb-pe-node:{{ current_version }}
docker pull thingsboard/tb-pe-web-report:{{ current_version }}
docker compose stop thingsboard-pe
```
{: .copy-code}
```bash
docker pull thingsboard/tb-pe-node:{{ current_version }}
docker pull thingsboard/tb-pe-web-report:{{ current_version }}
docker compose stop thingsboard-pe
```
{: .copy-code}

{% include templates/warn-banner.md content=update_note %}
{% include templates/warn-banner.md content=update_note %}

```bash
docker compose run --rm -e UPGRADE_TB=true thingsboard-pe
```
{: .copy-code}
```bash
docker compose run --rm -e UPGRADE_TB=true thingsboard-pe
```
{: .copy-code}

```bash
docker compose up -d
```
{: .copy-code}
```bash
docker compose up -d
```
{: .copy-code}
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

1. Change the parameter `TB_VERSION` in the `.env` file.

```.env
TB_VERSION={{ current_version }}
```
```.env
TB_VERSION={{ current_version }}
```

2. Execute the following commands:

```bash
./docker-stop-services.sh
./docker-upgrade-tb.sh --fromVersion={{ from_version }}
./docker-start-services.sh
```
{: .copy-code}
```bash
./docker-stop-services.sh
./docker-upgrade-tb.sh --fromVersion={{ from_version }}
./docker-start-services.sh
```
{: .copy-code}
32 changes: 18 additions & 14 deletions _includes/docs/user-guide/install/docker-compose-upgrade-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@

1. Change the parameter `TB_VERSION` in the `.env` file.

```.env
TB_VERSION={{ current_version }}
```
```.env
TB_VERSION={{ current_version }}
```

2. Execute the following commands:

{% if include.skipUpgrade %}
```bash
./docker-stop-services.sh
./docker-start-services.sh
```

```bash
./docker-stop-services.sh
./docker-start-services.sh
```
{: .copy-code}

{% else %}
```bash
./docker-stop-services.sh
./docker-upgrade-tb.sh
./docker-start-services.sh
```
{% endif %}

{: .copy-code}
```bash
./docker-stop-services.sh
./docker-upgrade-tb.sh
./docker-start-services.sh
```
{: .copy-code}

{% endif %}
31 changes: 17 additions & 14 deletions _includes/docs/user-guide/install/docker-upgrade-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@

2. Execute the following commands:


{% if include.skipUpgrade %}
```bash
docker pull thingsboard/tb-node:{{ current_version }}
docker compose stop thingsboard-ce
docker compose up -d
```
{: .copy-code}

```bash
docker pull thingsboard/tb-node:{{ current_version }}
docker compose stop thingsboard-ce
docker compose up -d
```
{: .copy-code}

{% else %}
```bash
docker pull thingsboard/tb-node:{{ current_version }}
docker compose stop thingsboard-ce
docker compose run --rm -e UPGRADE_TB=true thingsboard-ce
docker compose up -d
```
{: .copy-code}

```bash
docker pull thingsboard/tb-node:{{ current_version }}
docker compose stop thingsboard-ce
docker compose run --rm -e UPGRADE_TB=true thingsboard-ce
docker compose up -d
```
{: .copy-code}

{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ If you are upgrading from version {{ previous_version }}, you must run the scrip
{% endcapture %}
1. Change the parameter `TB_VERSION` in the `.env` file.

```.env
TB_VERSION={{ current_version }}
```
```.env
TB_VERSION={{ current_version }}
```

2. Execute the following commands:

```bash
./docker-stop-services.sh
```
{: .copy-code}
```bash
./docker-stop-services.sh
```
{: .copy-code}

{% include templates/warn-banner.md content=update_note %}
{% include templates/warn-banner.md content=update_note %}

```bash
./docker-upgrade-tb.sh
```
{: .copy-code}
```bash
./docker-upgrade-tb.sh
```
{: .copy-code}

```bash
./docker-start-services.sh
```
{: .copy-code}
```bash
./docker-start-services.sh
```
{: .copy-code}
34 changes: 17 additions & 17 deletions _includes/docs/user-guide/install/new-docker-upgrade-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ If you are upgrading from version {{ previous_version }}, you must run the scrip

2. Execute the following commands:

```bash
docker pull thingsboard/tb-node:{{ current_version }}
docker compose stop thingsboard-ce
```
{: .copy-code}

{% include templates/warn-banner.md content=update_note %}

```bash
docker compose run --rm -e UPGRADE_TB=true thingsboard-ce
```
{: .copy-code}

```bash
docker compose up -d
```
{: .copy-code}
```bash
docker pull thingsboard/tb-node:{{ current_version }}
docker compose stop thingsboard-ce
```
{: .copy-code}

{% include templates/warn-banner.md content=update_note %}

```bash
docker compose run --rm -e UPGRADE_TB=true thingsboard-ce
```
{: .copy-code}

```bash
docker compose up -d
```
{: .copy-code}