You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `auto-upgrade-tool.sh` script automatically fetches the latest tags for `subquerynetwork/indexer-coordinator` and `subquerynetwork/indexer-proxy` from Docker Hub and updates the versions in your Docker Compose configuration file.
221
221
@@ -227,11 +227,9 @@ The `auto-upgrade-tool.sh` script automatically fetches the latest tags for `sub
227
227
./auto-upgrade-tool.sh -f my-compose.yml
228
228
229
229
# Force the script to run `docker compose up` without confirmation
230
-
./auto-upgrade-tool.sh -u
230
+
./auto-upgrade-tool.sh -y
231
231
```
232
232
233
-
### Step 3: Sample Script Execution
234
-
235
233
Here’s an example of running the script:
236
234
237
235
```sh
@@ -266,8 +264,6 @@ Set `external: true` to use an existing network.
266
264
✔ Container indexer_proxy Started 11.6s
267
265
```
268
266
269
-
### Step 4: Docker Compose File Update Example
270
-
271
267
After running the script, the `docker-compose.yml` file will be updated. Below is an example of the changes:
272
268
273
269
```diff
@@ -288,12 +284,12 @@ After running the script, the `docker-compose.yml` file will be updated. Below i
288
284
24 ⋮ 24 │ ports:
289
285
```
290
286
291
-
### Step 5: Setting Up a Cron Job
287
+
### Step 3: Setting Up a Cron Job
292
288
293
289
To automate the script execution, set up a cron job. Below is an example of a cron job that runs the script every 6 hours:
This will list all cron jobs for the root user, including the one you just added.
352
-
353
-
## 11. Upgrade Node Operator services (Ongoing)
354
-
355
-
To upgrade a Node Operator service, you will need to update the version of the image used in the docker-compose file. This can be done by updating the image field in the service definition to the new version you want to use.
356
-
357
-
Once the image version has been updated in the docker-compose file, you can restart the specific container that needs to be upgraded. This can be done by running the following command in the terminal:
358
-
359
-
```bash
360
-
docker-compose up -d --no-deps container-service-name
361
-
```
362
-
363
-
The `up` command starts the container in the background, while the `--no-deps` flag prevents Docker Compose from starting any linked services. Finally, the `container-service-name` argument specifies the name of the container that needs to be restarted.
364
-
365
313
By following these simple steps, you can upgrade your Node Operator services in Docker Compose and ensure that they are running the latest version of the image.
0 commit comments