-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrading to a New Release
Dave Walker edited this page Aug 19, 2024
·
3 revisions
Note
The instructions, below, assume you are running the application using the Docker container images
- Stop the application, if it's running
- Run the following command to list local docker container images:
docker image list
- The output should look similar to the following:
REPOSITORY TAG IMAGE ID CREATED SIZE
davewalker5/droneflightlogmvc latest 2bf77d90ecef 17 minutes ago 331MB
davewalker5/droneflightlogapisqlite latest cfad228eaf4a 18 minutes ago 319MB
- For each of the "droneflightlogmvc" and "droneflightlogapisqlite" images, copy the image ID and run the following command to remove them:
docker rmi <image_id> --force
- For example, using the example, above, the commands would be:
docker rmi 2bf77d90ecef --force
docker rmi cfad228eaf4a --force
- The release notes will indicate the version of the API associated with the release
- Using the section on "Docker and Docker Compose" as a reference, find the volume mount for the database folder in the Docker Compose file
- They will look similar to the following:
volumes:
- C:\DroneFlightLog:/var/opt/droneflightlog.api-x.x.x.x/
- Where "C:\DroneFlightLog" is the local path to the database folder
- Update the "x.x.x.x" to match the version number of the API and save your changes
- For example, for version 1.3.0.0 of the API the result would be:
volumes:
- C:\DroneFlightLog:/var/opt/droneflightlog.api-1.3.0.0/
- Beginning with version 1.4.0.0, the API version is no longer included in the path to the database folder in the running API container
- Using the section on "Docker and Docker Compose" as a reference, find the volume mount for the database folder in the Docker Compose file
- They will look similar to the following:
volumes:
- C:\DroneFlightLog:/var/opt/droneflightlog.api-x.x.x.x/
- Where "C:\DroneFlightLog" is the local path to the database folder
- Remove the "-x.x.x.x" and save your changes:
volumes:
- C:\DroneFlightLog:/var/opt/droneflightlog.api/
- If you have not previously upgraded to 1.4.0.0, follow the instructions for that version, above
- If you've already made the changes required for 1.4.0.0, no further changes are needed
[!CAUTION] > If the release requires database updates to be applied, it's strongly recommended that you make a backup copy of the SQLite Database before applying them
- The release notes will indicate if the new release requires any database migrations to be applied
- If so, follow the instructions in the "Database > Updating an Existing Database" section of the Wiki
- Using the section on "Docker and Docker Compose" as a reference, run the "docker compose" command to start the application
- As the local container images have been removed, it will first pull the latest images from Docker Hub and will then run the application