An upgrade keeps your records, evidence, keys, settings and certificate, and replaces the program.
Steps
- Back up the installation. See Back Up and Restore.
-
Extract the new package in a separate directory and verify it:
sha256sum -c SHA256SUMS docker load -i images/barebonesvalidation-host-<version>.tar -
In the installation directory, stop the web service:
docker compose stop web -
Copy these from the new package into the installation directory, replacing the old ones:
docker-compose.yml,configure-database.sh,uninstall.sh,RUNBOOK.md,artifact-manifest.json,SHA256SUMS,.env.example, and the folderskit,imagesandlicenses. Keep.env, the certificate and the Compose project name. - In
.env, setBBV_WEB_IMAGEto the value in the new.env.example. Copy any new settings from that example. - Run
./configure-database.sh. It starts the database, brings the database up to the new version and waits until the program answers. -
Sign in. Open
/healthzand check:Field Must be sourceCommitThe commit in the package's manifest deploymentIdThe package version sourceRefpackage/<version>buildIdentityProventrue
After the upgrade
An upgrade to 1.0.1 or later closes the plain HTTP port. BBV_WEB_HTTP_PORT
in .env is no longer used and can be removed. People must use the HTTPS
address. Browsers are also told to use HTTPS only for your host name; see
HTTPS only in Install on Linux
and set BBV_HSTS_MAX_AGE_DAYS before you start the new version if the
default of 180 days does not suit your host name.
- Your records, accounts, evidence and packages are as they were.
- Administration › Licence still reads Active. You do not enter the key again.
- Links to the Validation area saved before release 1.0.1 still open; they
lead to the new address,
/validation. - From release 1.0.1 each project says what its validation packages are. After the upgrade every existing project reads A validation support package we supply to others. If you validate the software for your own use, change it under Administration › Validation projects › Change what its packages are. The change applies to the next package you generate.
- Settings in
.envthat the new.env.exampleno longer lists can stay. They are not used.