Given:
A Linux Server
Access to install standard software from repositories
A valid Polarity License
The Polarity Server install script
Procedure:
Install prerequisite software:
Includes the following software:
epel-releasepodmanpodman-composejqpostgresqlwgetcontainer-selinuxpolicycoreutils-python-utilspython3-dotenv
Commands:
# Install and update the EPEL repository sudo dnf install epel-release -y sudo dnf update -y # Ensure PostgreSQL module version is up to date sudo dnf module enable postgresql:16 -y # Install the prerequisite software sudo dnf install -y \ podman \ podman-compose \ jq \ postgresql \ wget \ container-selinux \ policycoreutils-python-utils \ python3-dotenv
Add the desired user to own the Polarity Server container processes:
We use the
polarityduser with UID:GID31337:31337by default.# Add the user to the system sudo useradd -u 31337 -U -m -d /app -s /bin/bash polarityd # Set the new user's password sudo passwd polarityd # Set user's ownership over home directory sudo chown -R polarityd: /app
Allow Polarity Server process owner to maintain ownership without an active session:
sudo loginctl enable-linger 31337
Add the Polarity Server process owner to the
wheelgroup:# Verify polarityd's current group membership sudo groups polarityd ## example output - "polarityd: polarityd" # IF polarityd is NOT in the wheel group, add them sudo groupmod -a -U polarityd wheel # Re-verify polarityd's group membership sudo groups polarityd ## example output - "polarityd: polarityd wheel"
Download the Polarity Server installation script and execute it (as the process owner):
Switch user to the Polarity Server process owner:
sudo su - polarityd
Script may have a filename in the format
install-<web.version>-<server.version>-offline-selfextract.sh.wget https://<download.url>/install-5.5.0-5.5.1-offline-selfextract.shYou can get the URL from your Customer Success team.
Make the script executable:
chmod u+x ./install-5.5.0-5.5.1-offline-selfextract.sh
Add your Polarity License file to the same directory as the install script.
Execute the script with
sudo.sudo ./install-5.5.0-5.5.1-offline-selfextract.sh
If Docker is installed, the script will automatically choose Docker as the container engine. To force the script to use Podman instead, prepend execution with
CONTAINER_ENGINE=podman:sudo CONTAINER_ENGINE=podman ./install-5.5.0-5.5.1-offline-selfextract.sh
Installation will fail if your Polarity License file is not in the same directory as the installation script.
Install prerequisite software:
Includes the following software:
podmanpodman-composejqpostgresql-clientwgetuidmaprootlesskitslirp4netns
Commands:
# Ensure repositories are up to date sudo apt-get update # Install the prerequisite software sudo apt-get install -y \ podman \ podman-compose \ jq \ postgresql-client \ wget \ uidmap \ rootlesskit \ slirp4netns
Add the desired user to own the Polarity Server container processes:
We use the
polarityduser, with UID:GID31337:31337by default.# Add the user to the system sudo useradd -u 31337 -U -m -d /app -s /bin/bash polarityd # Set the new user's password sudo passwd polarityd # Set user's ownership over home directory sudo chown -R polarityd: /app
Prepare the Polarity Server process owner to execute the installation script:
Allow Polarity Server process owner to maintain ownership without an active session:
sudo loginctl enable-linger 31337
Add the Polarity Server process owner to the
admandsudogroups:# Verify polarityd's current group membership sudo groups polarityd ## example output - "polarityd: polarityd" # IF polarityd is NOT in the adm and sudo groups, add them sudo groupmod -a -U polarityd adm sudo groupmod -a -U polarityd sudo # Re-verify polarityd's group membership sudo groups polarityd ## example output - "polarityd: polarityd adm sudo"
Download the Polarity Server installation script and execute it (as the process owner):
Switch user to the Polarity Server process owner:
sudo su - polarityd
Script may have a filename in the format
install-<web.version>-<server.version>-offline-selfextract.sh(or similar).wget https://<download.url>/install-5.5.0-5.5.1-offline-selfextract.shYou can get the URL from your Customer Success team.
Make the script executable:
chmod u+x ./install-5.5.0-5.5.1-offline-selfextract.sh
Add your Polarity license file to the same directory as the install script.
Execute the script as the process owner (ie. do not use
sudo):./install-5.5.0-5.5.1-offline-selfextract.shYou may be prompted a few times for the process owner’s password (to make system changes, etc.).
If Docker is installed, the script will automatically choose Docker as the container engine. To force the script to use Podman instead, prepend execution with
CONTAINER_ENGINE=podman:CONTAINER_ENGINE=podman ./install-5.5.0-5.5.1-offline-selfextract.sh
Installation will fail if your Polarity License file is not in the same directory as the installation script.