Skip to content

Upgrade

From Quickstart

Manually

We recommend checking out the new version of isardvdi.cfg.example for any new parameters you want to set.

Every time you update, run the build.sh script, which reads the configuration variables from isardvdi.cfg. Then pull the updated container images and bring the stack up again: only the containers that changed are recreated, and IsardVDI is operational again.

cd path_to_isard_source
git pull
./build.sh
docker-compose pull
docker-compose up -d

Automatic

We recommend configuring automatic updates using a cron that runs the following script.

In case of modifications in the version of isardvdi.cfg.example, the automatic update will not be carried out.

From Source/Build

Follow these steps to upgrade:

  1. Navigate to your src folder.
  2. Retrieve the new source code: git pull
  3. Check isardvdi.cfg.example for any new environment variables that are missing from your current isardvdi.cfg.
  4. Build the YAML configuration: bash build.sh
  5. Choose one of the following options:
  6. Build your own images: docker-compose -f docker-compose.build.yml build
  7. Pull the current images: docker-compose pull
  8. Start the new containers (upgrades are automated): docker-compose up -d

Automatic upgrades

The isardvdi repository includes a script in the sysadm folder that handles upgrades. The script is self-explanatory, but the following steps outline the main setup required on your server:

  1. Make sure curl is installed: the script uses it to ask GitLab for the latest version.
  2. Run sysadm/upgrade.sh cron to print the cron line for your installation, and add it to root's crontab (sudo crontab -e). For example, to upgrade every Sunday at 04:00:
0 4 * * 0 /opt/isard/src/sysadm/upgrade.sh upgrade >> /var/log/isardvdi-auto-upgrade.log 2>&1

Major version upgrades are blocked unless you add --force-major-upgrade, and downgrades are never allowed.