Upgrades
Upgrading RegScale
The RegScale platform is continuously updated based on customer feedback and to ensure that any security risks are mitigated over time. As such, frequent upgrades are recommended to keep your RegScale platform on the latest version. This page provides guidance on how to upgrade your instance.
Upgrading with Docker Compose
- Stop the application -
docker-compose down
- Edit the YAML file,
cat docker-compose.yml
to the version of the container you wish to upgrade to (if you need to specify a specific version). You can also set the container to useimage:regscale/regscale:latest
to always update to the latest available image. - Pull the new containers -
docker-compose pull
- Restart the application -
docker-compose up
- The upgrade is as simple as "bouncing" the container by taking it down and having it pull the latest image as Docker Compose spins it back up.
NOTE: You must be in the directory with the YAML file to start and stop the container.
Upgrading with Kubernetes
- Open the deployment YAML file for your install
- Edit the version of the container desired
- Reapply the deployment -
kubectl apply -f deployment.yaml
NOTE: If you host the application with multiple pods, upgrades can be done non-disruptively in a rolling fashion.
Upgrading with IIS
NOTE: For version 5.27 and later, you must install the latest version of the ASP.NET Core 8.0 Runtime on your Windows 2019 server.
- Download the latest RegScale IIS upgrade package
- Unzip the file
- Stop the RegScale application in IIS
- Paste the new files over the existing ones to get the latest version
- Restart the RegScale application in IIS
General Notes for Upgrades
- It is recommended to backup the database before upgrades, especially between major version releases
- It is recommended to backup the storage volume before major upgrades
- The rest of the RegScale platform is stateless and immutable. Containers may be spun up and torn down at will with no data loss.
Deployment changes with RegScale 5.27.0 and above
.Net has been upgraded to .NET 8 in the 5.27.0 release of RegScale. This update changed the default ASP.NET Core port from 80 to 8080.
The container new starts and, by default, listens internally on port 8080 vs. 80.
-
Docker Deployment:
In the atlas: section of the docker-compose.yaml file, under ports: change.- -"81:80" to "81:8080"
The format is - "external port:internal port". BY changing 80 to 8080, requests made to the container on the external port will be mapped to the internal container port of 8080.
Note: The enternal port might be something different depending on your environment.
- -"81:80" to "81:8080"
-
Kubernetes and similar deployments
Set an environment variable to specify port 80
ASPNETCORE_HTTP_PORTS = 80 -
For more information on this change, review the following reference.
https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/aspnet-port
Disclaimer - RegScale is not responsible for any lost configuration files. All configuration files and associated secret management are a customer responsibility. RegScale support personnel do not have access to customer files and secrets and will be unable to restore the application or data if secrets are lost.
Disclaimers
- RegScale only supports upgrades of the system. It is not possible to downgrade. If the system is downgraded, the database schema can become very unstable and will place the platform in an unsupported configuration. In these cases, the only recovery is to restore from backup.
Updated 9 months ago