Releases: metabrainz/musicbrainz-docker
v-2022-07-04
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2022-05-17-mbdb27
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-07-04 && \
sudo docker-compose up --build -d
Only change
- Upgrade MusicBrainz Server to
v-2022-07-03
v-2022-06-20
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2022-05-17-mbdb27
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-06-20 && \
sudo docker-compose up --build -d
Changes
- Upgrade MusicBrainz Server to
v-2022-06-20
- Fixed SIR development setup to work with its new Python base image.
- MBVM-84: Support database-only mirror
Detailed steps if you want to switch a running mirror to this new database-only setup:- Update
musicbrainz-docker
files with:git fetch --tags origin && git checkout v-2022-06-20
- Backup the list of your currently enabled compose files with:
admin/configure show | tee -a "local/config-pre-v-2022-06-20-$(date +%FT%T).log"
- Reset it to use the database-only base configuration with:
admin/configure with alt-db-only-mirror
- If you had enabled replication, re-enable it with:
admin/configure add replication-token replication-cron
- If you had enabled publishing ports, enable it for the database only with:
admin/configure add publishing-db-port
- If you had enabled any local override compose file (for example
local/compose/memory-settings.yml
), modify this file to remove services other thandb
,musicbrainz
, andredis
(for the same example, remove the lines about thesearch
service), then enable it again; For the same example with:admin/configure add local/compose/memory-settings.yml
- Update your needed services
db
,musicbrainz
(which can take some time to build its new image) andredis
, and remove the others with:sudo docker-compose up --build --remove-orphans -d
- Update
v-2022-06-07
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2022-05-17-mbdb27
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-06-07 && \
sudo docker-compose up --build -d
Changes
- Upgrade MusicBrainz Server to
v-2022-06-07
- MBVM-85: Rename "slave" to "mirror" (inclusive language update)
Fix outdated instructions to readmirror.log
instead ofslave.log
after MBS-12225.
v-2022-05-17-mbdb27
Breaking changes
This release upgrades to MusicBrainz database schema 27 and search index rebuilder 3 accordingly. It requires to run commands taking down all services during the upgrade.
If your musicbrainz-docker
is earlier than v-2021-05-19
, you must first update to it (see its release notes) and follow the upgrade instructions below, or remove everything using sudo docker-compose down --rmi local --volumes
and reinstall.
Disk space requirements have significantly increased with recording's "first release date" table: 200 GB (or 70 without indexed search).
Upgrade instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then:
-
Ensure you’ve replicated up to the most recent replication packet available with the old schema 26. If you’re not sure, run:
sudo docker-compose exec musicbrainz bash -c ./admin/replication/LoadReplicationChanges
and see what it tells you; if you’re ready to upgrade, it should say “This replication packet matches schema sequence #\27, but the database is currently at #\26.”
-
Turn off cron jobs:
admin/configure rm replication-cron sudo docker-compose up -d musicbrainz
-
If you’re using the live search indexing, stop it and disable it as follows:
sudo docker-compose stop indexer admin/configure rm live-indexing-search
-
Switch to the new code with:
git fetch --tags origin git checkout v-2022-05-17-mbdb27 sudo docker-compose build
-
If you were using the live search indexing, uninstall its triggers as follows:
sudo docker-compose up -d indexer admin/setup-amqp-triggers uninstall
-
Upgrade the database schema (it may take a while to vacuum at the end, ignore the ending message about
DB_SCHEMA_SEQUENCE
):mkdir -p local/compose && cp -a admin/lib/upgrade-db-schema/musicbrainz-stopped.yml local/compose admin/configure add local-compose-musicbrainz-stopped sudo docker-compose up -d musicbrainz indexer sudo docker-compose exec musicbrainz upgrade-db-schema.sh
-
If you’re using the web interface or web service, run the following to build new materialized tables. These will take several additional gigabytes of spaces and be kept up-to-date automatically via triggers. For more information, see INSTALL.md.
sudo docker-compose exec musicbrainz bash -c './admin/BuildMaterializedTables --database=MAINTENANCE all'
-
If you’re using the live search indexing, install new triggers:
admin/setup-amqp-triggers install
then rebuild search indexes which takes hours
(or download pre-built search indexes); See Set up search indexes):sudo docker-compose exec indexer python -m sir reindex
and re-enable live search indexing:
admin/configure add live-indexing-search
-
Turn cron jobs back on:
admin/configure rm local-compose-musicbrainz-stopped admin/configure add replication-cron
-
Stop Redis and restart all services:
sudo docker-compose stop redis sudo docker-compose up --build -d
Solved issues
- Secure published ports in development setup
- Simplify installing/uninstalling indexer triggers
Other changes
- Upgrade MusicBrainz Server to
v-2022-05-16-schema-change
(release notes) - Upgrade search indexer rebuilder to
v3.0.1
(seev3.0.0
release notes)
v-2022-04-18
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-04-18 && \
sudo docker-compose up --build -d
Only change
- Upgrade MusicBrainz Server to
v-2022-04-18
v-2022-03-28
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-03-28 && \
sudo docker-compose up --build -d
NB! This time these instructions should also be followed for the MusicBrainz Server development setup.
Only change
- Upgrade MusicBrainz Server to
v-2022-03-28
v-2022-03-14
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-03-14 && \
sudo docker-compose up --build -d
Changes
- Upgrade MusicBrainz Server to
v-2022-03-14
It now supports connecting to more than one Redis instance for migration. - Improve initializing the container
indexer
for customization and development:
Live search now overridescommand
only instead of overridingentrypoint
and erasingcommand
. - Make search helper scripts compatible with Docker Compose 2.
- Drop using
apt-key
which is deprecated since 2021.
v-2022-02-28
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-02-28 && \
sudo docker-compose up --build -d
Only change
- Upgrade MusicBrainz Server to
v-2022-02-28
v-2022-02-14
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-02-14 && \
sudo docker-compose up --build -d
Only change
- Upgrade MusicBrainz Server to
v-2022-02-14
v-2022-01-31
Update instructions
Assuming your checked out version of musicbrainz-docker
is v-2021-05-19
or later, then just run:
git fetch --tags origin && \
git checkout v-2022-01-31 && \
sudo docker-compose up --build -d
Only change
- Upgrade MusicBrainz Server to
v-2022-01-31