|
|
|
# OpenCell migration or version upgrade process
|
|
|
|
|
|
|
|
To update the version of your OC instance we do the next process:
|
|
|
|
|
|
|
|
1. Look in the Release Notes the OC team instructions. Ex. https://opencell.assembla.com/spaces/meveo-enterprise/wiki/Opencell_7_Release_note
|
|
|
|
2. Search the version you want to install
|
|
|
|
3. Look if exist any migration SQL script.
|
|
|
|
- If exists, add it to the volumes attached to the `postgres-wildfly` container in the `docker-entrypoint-initdb.d` folder to execute the script in the container startup:
|
|
|
|
```
|
|
|
|
- /home/opencell/input-files/migration-to-X.sql:/docker-entrypoint-initdb.d/migration-to-X.sql
|
|
|
|
```
|
|
|
|
|
|
|
|
- Restart de db container.
|
|
|
|
- Remove the volume of the db migration
|
|
|
|
|
|
|
|
4. Update the code of OpenCell and restart it.
|
|
|
|
- Download the `war` file of the version needed.
|
|
|
|
- Replace the `war` file used (in `input-files`) by the new `war` file.
|
|
|
|
- Restart the OC container.
|
|
|
|
|
|
|
|
> If you don't use the ElasticSearch engine to search, you need to disable it. Set the var `elasticsearch.restUri` equal to none in `opencell-admin.properties`:
|
|
|
|
```
|
|
|
|
elasticsearch.restUri=
|
|
|
|
``` |