Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.33 KB

UPGRADE-3.0.md

File metadata and controls

58 lines (42 loc) · 1.33 KB

UPGRADE FROM 2.x to 3.0

Upgrade docker compose stack

bin/migrate.sh \
  && bin/setup.sh \
  && dc run --rm configurator migration:v20230807 -vvv

Upgrade HELM release

  1. Backup actual version:
export NAMESPACE=<namespace>
cd /path/to/phrasea
./bin/ops/export-all-k8s.sh "${NAMESPACE}"
  1. Upgrade HELM release

Go to Cycloid and change HTML Chart version and phrasea image tag (i.e 3.2.2) You can also enable Sentry (don't forget DSN for PHP and Client).

If Databox was not enabled before, you need to enable it and uncheck "Run Migrations" from "Deployment Settings (Advanced)" Then, after plan/apply, you can shell to the new databox-api-php and run the following commands:

bin/console doctrine:schema:drop -f || true
bin/install.sh

Then you should restore "Run Migrations" to checked and disable Databox back. Then plan/apply

  1. then run the following script line by line:
export CHART_VERSION=<chart-version>
bin/ops/configurator-configure.sh ${NAMESPACE} ${CHART_VERSION}
bin/ops/configurator-migrate.sh ${NAMESPACE} v20230807 ${CHART_VERSION}

Follow the logs (optional):

kubectl attach -it job/configurator-migrate-${MIGRATION_NAME}

Clean jobs:

kubectl delete job/configurator-migrate-${MIGRATION_NAME}
kubectl delete job/configurator-configure