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.
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:
- Navigate to your
srcfolder. - Retrieve the new source code:
git pull - Check
isardvdi.cfg.examplefor any new environment variables that are missing from your currentisardvdi.cfg. - Build the YAML configuration:
bash build.sh - Choose one of the following options:
- Build your own images:
docker-compose -f docker-compose.build.yml build - Pull the current images:
docker-compose pull - 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:
- Make sure
curlis installed: the script uses it to ask GitLab for the latest version. - Run
sysadm/upgrade.sh cronto 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:
Major version upgrades are blocked unless you add --force-major-upgrade, and downgrades are never allowed.