...
For Docker Installations
Note |
---|
Note: avalon-docker 7.7.0 switches to a bind mount volume for storing Solr data for safer persistence across upgrades. |
Stop Avalon
Code Block docker-compose down
Backup solr data using instructions on https://samvera.atlassian.net/wiki/spaces/AVALON/pages/2303328775/Backing+up+and+restoring+supporting+services#Solr
Update new code from avalon-docker
Code Block git checkout main git pull sudo chmod a+w solr_data
Pull new images
Code Block docker-compose pull avalon solr
Check config changes then restart the Avalon containers
Code Block docker-compose up
Run reindex (inside avalon container)
First download the latest version of the reindex script toscript/reindex.rb
then run:Code Block RAILS_ENV=production nohup bundle exec rails r script/reindex.rb -v --parallel-indexing
Run rake migrations (inside avalon container)
Code Block RAILS_ENV=production bundle exec rake avalon:migrate:collection_managers RAILS_ENV=production bundle exec rake avalon:migrate:caption_files
...