Updating Polarity Server v5 to the Latest Release
  • 23 Jan 2025
  • 1 Minute to read
  • Dark
    Light

Updating Polarity Server v5 to the Latest Release

  • Dark
    Light

Article summary

This page covers how to update your Polarity Server v5 to the latest release.

Updating Polarity v5 

With the version 5 server, we have made the update process extremely simple.

We now have a update script which will check our repositories to see if there is an updated version of Polarity Server available.  If there is, it will download the update and then create an /app/updates directory. 

Download Update

Change working directories to the /app directory and then run the update script.

Note

Depending on your version of Polarity Server, you will see one of two update scripts - download_update.sh for early versions of v5, and get_update.sh for more recent versions.
We are covering the most recent version for clarity.

cd /app
./get_update.sh

If an update is available, the self-extracting update script will be downloaded to the /app/updates directory.  If there is no update available, you will see a message stating "Polarity is already up to date."

Install Update 

After an available update is downloaded, change working directories to the updates directory and run the update script that was downloaded.

cd /app/updates
./update-<web.version-server.version-optional_distro>-offline-selfextract.sh

The filename of the update script is version dependent

You will be prompted to start the update once the script extracts the update data.

Once the update script is finished you will be on the latest version of Polarity Web and Server!

As always, you can find our release documentation on our Releases Page

Update the Docker Compose Utility

To install the Polarity Server v5, the instructions include a command to manually download and install the docker-compose binary from Docker’s GitHub repository.  However, this binary is not automatically updated when the other system software is updated and so must be updated manually.

The method to update the software is generally the same as initially installing it.  Simply execute the following commands as root or a user with sudo privileges:

wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -O /usr/local/bin/docker-compose
chmod -v +x /usr/local/bin/docker-compose

This will download the latest version available for your system and ensure it is executable in the correct location.

To complete the update, you’ll then need to restart the containers:

cd /app && ./down.sh && ./up.sh

Your system will then be running the latest version of the Docker Compose utility.


Was this article helpful?