268 Commits

Author SHA1 Message Date
b225dfbc29 Upgrade MusicBrainz Server to v-2025-02-24.0 2025-02-24 16:10:48 +01:00
47b5c97cce Upgrade MusicBrainz Server to v-2025-02-10.0 2025-02-10 16:16:16 +01:00
77897dbe73 Merge pull request from metabrainz/sir-dev-compose-env
Set up SIR development via Docker Compose environment variables
2025-01-31 17:15:47 +01:00
5c5e6ec8bb Amend 1f0218c3: Set variables for sir entrypoint 2025-01-28 10:50:13 +01:00
59b8940285 Upgrade MusicBrainz Server to v-2025-01-27 2025-01-27 20:55:49 +01:00
bd82ddc346 Upgrade MusicBrainz Server to v-2025-01-13 2025-01-13 21:44:06 +01:00
3256f3b959 Upgrade MusicBrainz Server to v-2024-09-12.0 2024-12-09 15:03:20 +01:00
3b7aa26227 Upgrade MusicBrainz Server to v-2024-11-18.0 2024-11-18 13:56:30 -06:00
76e883255c Upgrade MusicBrainz Server to v-2024-10-21.0 2024-10-21 14:50:06 +02:00
6b1976906a Upgrade MusicBrainz Server to v-2024-09-17 2024-09-17 10:10:30 +02:00
97a7e238fe Upgrade MusicBrainz Server to v-2024-09-02 2024-09-02 13:38:18 +02:00
d7f7f90809 Upgrade MusicBrainz Server to v-2024-08-12.0 2024-08-12 17:01:47 -05:00
bcd821343b Upgrade MusicBrainz Server to v-2024-07-22.0 2024-07-22 18:36:24 +02:00
15da0c2cd2 Upgrade MusicBrainz Server to v-2024-07-11.0 2024-07-11 10:20:20 +01:00
a093084875 Upgrade MusicBrainz Server to v-2024-06-24 2024-06-24 20:22:37 +01:00
f6909fcb27 MBVM-98: Fix enabling mirror website translations
Also add notes to hopefully keep language lists in sync.
It follows similar changes in musicbrainz-server for MBS-13584.
2024-06-24 20:22:37 +01:00
c8cf07773d Bump musicbrainz build sequence to 2
It replaces previous builds 0 & 1 which were missing some changes.
2024-05-14 16:33:01 +01:00
2a495a537b MBVM-42 (2/2): Prebuild db service image
The pg_amqp extension was still built from source for the db service.
It was taking some time for compilation, and happened to break after
release time on unexpected upstream changes.

This patch makes deploying mirror to use the prebuilt image
`metabrainz/musicbrainz-docker-db:<tag>` for the service
db by default instead of building pg_amqp from the source.

This image has to be built and pushed by the repository maintainers,
using the newly added script, before each release. It is always trying
to pull the latest upstream Docker image for security updates.

For backward compatibility, the image tag isn’t set in the compose
files directly, it is set in a Dockerfile instead. It makes it
incidentally easier to customize the image for particular needs.
It will be revisited when merging into musicbrainz-server repository.
2024-05-14 16:33:01 +01:00
ab3c0e7773 MBVM-42 (1/2): Prebuild musicbrainz service image
The last service to still be fully built from source was musicbrainz.
It was taking some time (as Perl modules were installed sequentially,
and now even Perl itself is compiled from source), and happened to break
after release time on unexpected upstream changes.

This patch makes deploying mirror to use the prebuilt image
`metabrainz/musicbrainz-docker-musicbrainz:<tag>` for the service
musicbrainz by default instead of building it from the source.

This image has to be built and pushed by the repository maintainers,
using the newly added script, before each release. It is always trying
to pull the latest upstream Docker image for security updates.

For backward compatibility, the image tag isn’t set in the compose
files directly, it is set in a Dockerfile instead. It makes it
incidentally easier to customize the image for particular needs.
It will be revisited when merging into musicbrainz-server repository.
2024-05-14 16:33:01 +01:00
371e419811 Upgrade Server to v-2024-05-13-schema-change ()
It brings MusicBrainz database schema 29 and requires manual upgrade.

See release notes for detailed upgrade steps.
2024-05-14 16:16:35 +01:00
6cdbc30a1d MBS-13361 (mirror): Upgrade to PostgreSQL 16
It replaces and simplifies previous Postgres version upgrade scripts.
The simplifications are due to not having additional scripts this time.
2024-05-08 15:21:08 +01:00
98732f4ad2 Install Perl module dependencies with Carton
Use Carton to install the Perl module dependencies with versions set in
musicbrainz-server/cpanfile.snapshot as in musicbrainz-* Docker images.

Reference: https://metacpan.org/dist/Carton/view/lib/Carton/Doc/FAQ.pod

Setting the environment variable `PERL_CARTON_CPANFILE`
allows running `carton exec` from any current working directory.

Reference: https://github.com/perl-carton/carton/blob/v0.9.63/Changes

A few Perl module dependencies are still installed using cpanm but these
should be moved to the cpanfile in the musicbrainz-server repository.
2024-05-07 16:00:25 +01:00
00c9ba732c MBS-13358 (III): Upgrade Perl version to 5.38.2
Our (MetaBrainz) base image is based on Phusion base image which in turn
is based on Ubuntu Jammy that comes with Perl 5.34.0 (using apt).  To
upgrade Perl with the same base image, we have to install from source.

Same commit as 125ec5b894f8614995a0d05f8c4cc03d22cbaab for normal setup.
2024-04-22 18:50:35 +02:00
d1850127c7 Install cpanm from source instead of using apt-get
This method will work even if installing a more recent Perl from source.

Same commit as eabd479464a40d7d9834c894771c20e0c75e1a9 for normal setup.
2024-04-18 17:54:07 +02:00
d3b7501f38 Install local::lib using cpanm instead of apt-get
This method will work even if installing a more recent Perl from source.

Same commit as 28429131224e597f69273eae893c077ccc36529 for normal setup.
2024-04-18 17:53:28 +02:00
df42495a75 Upgrade MusicBrainz Server to v-2024-04-09 2024-04-09 20:19:56 +02:00
8cc2ad3105 Store bash history for musicbrainz development () 2024-03-22 10:03:39 +00:00
125ec5b894 MBS-13358 (I): Upgrade Perl version to 5.38.2
Our (MetaBrainz) base image is based on Phusion base image which in turn
is based on Ubuntu Jammy that comes with Perl 5.34.0 (using apt).  To
upgrade Perl with the same base image, we have to install from source.

This patch is for development setup only. The same series of patches
will be applied to mirrors when deploying Perl 5.38.2 in production.

In deployment setup only, Perl modules have to be rebuilt as follows:

```bash
docker-compose build musicbrainz
docker-compose stop musicbrainz
sudo rm -fr ../musicbrainz-server/perl_modules
docker-compose up -d musicbrainz
```
2024-03-21 19:29:32 +00:00
eabd479464 Install cpanm from source instead of using apt-get
This method will work even if installing a more recent Perl from source.
2024-03-21 19:29:05 +00:00
cecb58b570 Install ts from source instead of using apt-get
This method will work even if installing a more recent Perl from source.
2024-03-21 19:27:37 +00:00
2842913122 Install local::lib using cpanm instead of apt-get
This method will work even if installing a more recent Perl from source.
2024-03-21 19:27:30 +00:00
6585e70e2f Use the same coding style as in musicbrainz-server
This will make it easier to compare/merge code in the future.
2024-03-21 14:22:10 +00:00
82f54d7dc0 Merge pull request from lotooo/master
chore: Make redis, postgres and rabbitmq hosts configurable via env variables
2024-03-21 13:44:18 +00:00
498495789a Upgrade MusicBrainz Server to v-2024-03-11 2024-03-11 12:49:46 +02:00
9af3a52016 Upgrade MusicBrainz Server to v-2024-02-16 2024-02-16 15:33:55 +00:00
b02c61b5e0 Fix building pg_amqp with debian bookworm ()
Or fix building db service with pg_amqp and new base image

The official Docker images for Postgres updated their base image to more
recent versions of Debian, breaking the compilation of pg_amqp.

This patch sets image variant, to prevent further breakage,
and compilation flag, to address the three following errors:

    2.857 /usr/bin/clang-16 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-deprecated-non-prototype -O2  -I. -I./ -I/usr/include/postgresql/12/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o src/pg_amqp.bc src/pg_amqp.c
    2.989 src/pg_amqp.c:99:10: warning: 5 enumeration values not handled in switch: 'XACT_EVENT_PARALLEL_COMMIT', 'XACT_EVENT_PARALLEL_ABORT', 'XACT_EVENT_PRE_COMMIT'... [-Wswitch]
    2.989   switch(event) {
    2.989          ^~~~~
    2.989 src/pg_amqp.c:140:21: error: parameter 'broker_id' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    2.989 local_amqp_get_a_bs(broker_id) {
    2.989                     ^
    2.989 src/pg_amqp.c:152:19: error: parameter 'broker_id' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    2.989 local_amqp_get_bs(broker_id) {
    2.989                   ^
    2.990 src/pg_amqp.c:239:23: error: parameter 'broker_id' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    2.991 local_amqp_disconnect(broker_id) {
    2.991                       ^
    2.994 1 warning and 3 errors generated.
    2.997 make: *** [/usr/lib/postgresql/12/lib/pgxs/src/makefiles/../../src/Makefile.global:1076: src/pg_amqp.bc] Error 1
2024-02-09 15:01:37 +00:00
458f1ea62a Normalize locale code for Spanish UI localization
It follows changes that have already been applied in production.
2024-02-08 20:46:07 +00:00
5e368f4d19 Upgrade MusicBrainz Server to v2024-01-08 2024-01-08 19:23:51 +00:00
245736d952 MBVM-93: Prune the entity cache on replication () 2024-01-03 16:40:33 +00:00
d60373cb50 Amend 1f0218c3: Set hosts in MB development setup 2024-01-02 14:26:16 +00:00
f6c24a5104 Amend 1f0218c3: Replace db in MB development setup 2024-01-02 14:25:41 +00:00
7e7d8651d0 Amend 1f0218c3: Replace redis in MB dev setup 2024-01-02 14:19:05 +00:00
8af75d2c36 Amend 1f0218c3: Replace all db in recreatedb.sh 2024-01-02 14:16:41 +00:00
1f0218c3a0 chore: Make redis, postgres and rabbitmq hosts configurable via env variables 2023-12-27 16:05:49 +01:00
7a3ed46505 Upgrade MusicBrainz Server to v-2023-12-20 2023-12-20 16:37:11 +00:00
4ca4c40ef6 Upgrade MusicBrainz Server to v2023-11-27 2023-11-27 12:13:01 +00:00
9178a23cc7 Update the default download location 2023-11-27 12:11:32 +00:00
af1bc36280 Upgrade MusicBrainz Server to v-2023-11-13 2023-11-13 14:42:08 +00:00
a99d3e2b7e Avoid reinstalling already installed packages 2023-11-13 14:42:06 +00:00
92c387533e Upgrade Node.js version to 20 for musicbrainz
Align loading Nodesource keyring with musicbrainz-server repository.
Enable Yarn 4 directly from Node.js 20 package as it is now part of it.
2023-11-13 14:42:05 +00:00