2022-05-03 11:00:09 -06:00
|
|
|
# Upgrading WROLPi
|
|
|
|
|
|
2022-05-03 11:03:33 -06:00
|
|
|
# Table of Contents
|
|
|
|
|
|
|
|
|
|
* [Upgrading Docker containers](#upgrading-docker-containers)
|
2023-09-24 20:10:09 -06:00
|
|
|
* [Upgrading Raspberry Pi or Debian 12 Installation](#upgrading-raspberry-pi-or-debian-12-installation)
|
2022-05-03 11:03:33 -06:00
|
|
|
|
2022-05-03 11:00:09 -06:00
|
|
|
## Upgrading Docker containers
|
|
|
|
|
|
2023-04-10 13:25:50 -06:00
|
|
|
1. Stop docker containers
|
2022-05-03 11:00:09 -06:00
|
|
|
* `docker-compose stop`
|
2023-04-10 13:25:50 -06:00
|
|
|
2. Pull the latest master
|
|
|
|
|
* `git pull origin master --ff`
|
2022-05-03 11:00:09 -06:00
|
|
|
3. Build all docker containers
|
|
|
|
|
* `docker-compose build --parallel`
|
2022-05-03 11:07:48 -06:00
|
|
|
4. Create the map volumes
|
2023-02-23 12:09:19 -07:00
|
|
|
* `docker volume create --name=openstreetmap-data`
|
|
|
|
|
* `docker volume create --name=openstreetmap-rendered-tiles`
|
2022-05-03 11:07:48 -06:00
|
|
|
5. Turn on the database
|
2022-05-03 11:00:09 -06:00
|
|
|
* `docker-compose up -d db`
|
2022-05-03 11:07:48 -06:00
|
|
|
6. Upgrade the database
|
2022-05-03 11:00:09 -06:00
|
|
|
* `docker-compose run --rm api db upgrade`
|
2022-05-03 11:07:48 -06:00
|
|
|
7. Start all docker containers
|
2022-05-03 11:00:09 -06:00
|
|
|
* `docker-compose up -d`
|
2022-05-03 11:03:33 -06:00
|
|
|
|
2023-09-24 20:10:09 -06:00
|
|
|
## Upgrading Raspberry Pi or Debian 12 Installation
|
2022-05-03 11:03:33 -06:00
|
|
|
|
2023-02-23 12:09:19 -07:00
|
|
|
1. Run the upgrade script
|
|
|
|
|
* `sudo /bin/bash /opt/wrolpi/upgrade.sh`
|
2023-05-01 13:43:24 -06:00
|
|
|
* (If the upgrade script does not exist, run the installation script: `sudo /bin/bash /opt/wrolpi/install.sh`)
|