No categories assigned

Updating docker images

< Setup:Installation Guide‎ | Docker
Revision as of 13:53, 21 April 2021 by WikiSysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

  • Edition: BlueSpice free, distributed on Docker Hub as a Docker image.
  • Starting from version 3.1.13, BlueSpice Docker Hub release is able to upgrade itself automatically.

Spinning up a new container with old data

We assume you have a BlueSpice installation from Docker Hub. Also, this installation should have been done using an external data volume.

Example:

docker run -d -p 80:80 -v {/my/data/folder}:/data bluespice/bluespice-free

1.Back up your current data folder:

sudo cp -Rf /my/data/folder /my/data/current

2. Stop your current BlueSpice-free container:

docker container stop $your_container_id_or_name

3. Remove the container (optional):

docker container rm $your_container_id_or_name

4. Fetch the new container image:

docker pull bluespice/bluespice-free:latest

6. Create a fresh container with the new image:

docker run -d -p 80:80 -v {/my/data/new}:/data bluespice/bluespice-free

the BlueSpice DockerHub container will detect the old installation and execute necessary maintenance tasks in the background.

After the bootup, the Wiki will be up to date.


Fixing the broken search

The following commands fix the BlueSpiceExtendedSearch indexes:

sudo docker exec $container_name_or_id /opt/docker/setwikiperm.sh /data/www/bluespice/w
sudo docker exec $container_name_or_id /usr/bin/php /data/www/bluespice/w/maintenance/update.php --quick
sudo docker exec $container_name_or_id /usr/bin/php /data/www/bluespice/w/maintenance/rebuildall.php --quick
sudo docker exec $container_name_or_id /usr/bin/php /data/www/bluespice/w/extensions/BlueSpiceExtendedSearch/maintenance/initBackends.php --quick
sudo docker exec $container_name_or_id /usr/bin/php /data/www/bluespice/w/extensions/BlueSpiceExtendedSearch/maintenance/rebuildIndex.php
sudo docker exec $container_name_or_id /usr/bin/php /data/www/bluespice/w/maintenance/runJobs.php

Attachments

Discussions