Docker/Kuber Instructions for Upgrading CrafterCMS
This section details how to upgrade your CrafterCMS installations in Kubernetes or Docker Compose.
Upgrading Docker Compose
These upgrade instructions are for both authoring
and delivery
compose projects:
Run
docker-compose down
to fully stop the environment.If you are using a clone of https://github.com/craftercms/docker-compose, then just pull the latest changes. If you’re using your own Docker Compose files, then remember to update the versions of the CrafterCMS Docker images.
Check the release notes of the new CrafterCMS version (Release Notes) for upgrades to Elasticsearch. If there has been an upgrade, then also update the Elasticsearch image versions.
Check the configuration file changes between the previous version and the new version. If you have overwritten any of them in a volume, we recommend you do the following:
Compare the original configuration files and the files you have overwritten, so you know what are the changes you have made (for example, if you’re currently in 3.1.4, then run a diff between the original 3.1.4 configuration files and your overwritten versions).
Copy your changes to the new version of the configuration file (for example, if the new version you’re upgrading to is 3.1.5, then copy your configuration overrides to the 3.1.5 version of the file).
Replace the file in the volume with the new configuration file with your changes.
Check the Release Notes for any other additional tasks you need to perform.
Run
docker-compose up
.Monitor the Docker logs for any upgrade errors.
Upgrading Kubernetes Deployments
These upgrade instructions are for both Authoring and Delivery deployments:
Update the CrafterCMS image versions in your deployment files.
Check the release notes of the new CrafterCMS version (Release Notes) for upgrades to Elasticsearch. If there has been an upgrade, then also update the Elasticsearch image versions in your deployment files.
Check the configuration file changes between the previous version and the new version. If you have overwritten any of them in a
ConfigMap
orSecret
, we recommend you do the following:Compare the original configuration files and the files you have overwritten, so you know what are the changes you have made (for example, if you’re currently in 3.1.4, then run a diff between the original 3.1.4 configuration files and your overwritten versions).
Copy your changes to the new version of the configuration file (for example, if the new version you’re upgrading to is 3.1.5, then copy your configuration overrides to the 3.1.5 version of the file).
Replace the file in the
ConfigMap
orSecret
with the new configuration file with your changes.
Check the Release Notes for any other additional tasks you need to perform.
Apply the updated deployment files (
kubectl apply
) so the containers are restarted and the configuration changes detected.Monitor the Kubernetes logs for any upgrade errors.