-
Enhancement
-
Resolution: Done
-
Major
-
None
Add patching commands to the CLI:
- patch create to create patch archives (zips)
- patch ls to list the patches applied to a server
- patch describe to describe the contents of a patch archive
- patch install to install a patch on a server
- patch rollback to roll back the server to the previous patch
The patch zip should contain all the artifacts to upgrade from any number of source versions to a target version and a series of json patch descriptor with instructions (ADD, REMOVE, REPLACE, UPGRADE) on how to apply those artifacts. Take into account files which can be modified by users (e.g. infinispan.xml) and in case of differences create them with a different filename (e.g infinispan.xml-11.0.1.Final)
The installation process will back up any artifacts that will be replaced/upgraded/removed so that they can be rolled back.