Skip to content

Instantly share code, notes, and snippets.

@yvanzo
yvanzo / cover_art_details-focus_colours_3.svg
Created September 8, 2025 09:28
MB DB Schema Diagram Samples - Colours 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yvanzo
yvanzo / docker-compose-config.yml
Created December 6, 2022 16:20
SIR mirror test setup
secrets:
metabrainz_access_token:
file: local/secrets/metabrainz_access_token
services:
db:
build:
args:
POSTGRES_VERSION: '12'
context: build/postgres
command: postgres -c "shared_buffers=4GB" -c "shared_preload_libraries=pg_amqp.so"
@yvanzo
yvanzo / remote-search.yml
Created December 16, 2021 14:32
Docker Compose override file for remote search
version: '3.1'
# Description: Use remote search server
services:
musicbrainz:
environment:
- MUSICBRAINZ_SEARCH_SERVER=search.musicbrainz.org
@yvanzo
yvanzo / musicbrainz-local-lib.yml
Created May 26, 2021 20:24
Docker Compose override to place under local/compose/
version: '3.1'
# Description: Run local version of MusicBrainz Server Perl code
services:
musicbrainz:
volumes:
- ${MUSICBRAINZ_SERVER_LOCAL_LIB_PATH}:/musicbrainz-server/lib
@yvanzo
yvanzo / docker-compose.yml.diff
Created October 9, 2020 09:32
Replacing mb-solr with netcat for search service
diff --git a/docker-compose.yml b/docker-compose.yml
index ec558603..8e0a0393 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -81,24 +81,18 @@ services:
- search
search:
- build:
- context: build/solr
@yvanzo
yvanzo / sir-mb-solr-dev-plans.md
Created October 4, 2020 15:25
SIR and MB Solr development plans

Ongoing stuff

  • Improve queuing for SIR, thanks to mglubb’s PR - yvanzo
  • Update to Java 11 for MB Solr - lucifer
  • Fix inconsistencies with MB WS browse/lookup in MB Solr JSON output - lucifer
  • Investigate SIR’s usage of SQLAlchemy - alastairp/bitmap

## Major short-term issues

  • SIR indexing performances for mirrors (using musicbrainz-docker)
@yvanzo
yvanzo / mb-ws-dev-workflow.md
Created October 4, 2020 14:40
MusicBrainz webservice development workflow with search

Steps to bring changes to MB WS/2 (browse/lookup/search) when it affects search:

  1. Update and release mmd-schema (Mb metaData Schema) (including Relax NG schema + Java bindings)

  2. Update and release mb-solr (search server) (including unit tests) (do not deploy yet)

  3. Update sir (search indexer)

@yvanzo
yvanzo / after-tt.md
Created October 4, 2020 12:59
The World after the Template Toolkit crisis

React conversion

Current status (minor many opened PRs, minor converted code not removed yet)

  • Template Toolkit 200 files mostly about editing, very similar

Expected time of arrival

  • When it is ready!
  • 2020 Q4 seems too optimistic
  • 2021 Q2 looks more realistic
@yvanzo
yvanzo / Dockerfile
Last active September 10, 2020 15:37
Docker Compose override for SIR development setup
ARG PYTHON_VERSION=2.7
FROM metabrainz/python:${PYTHON_VERSION}
ARG PYTHON_VERSION
LABEL org.label-schema.schema-version="1.0.0-rc1" \
org.label-schema.vendor="MetaBrainz Foundation" \
org.metabrainz.based-on-image="metabrainz/python:${PYTHON_VERSION}"
#######################