Giter VIP home page Giter VIP logo

Comments (6)

ZCube avatar ZCube commented on May 31, 2024 1

@unixfox Galera seems a bit complicated image. Study is needed It will be difficult soon, but I'll see when I have time.

from bitnami-compat.

ZCube avatar ZCube commented on May 31, 2024

@unixfox added But it's hard to test because I haven't used this image yet.

from bitnami-compat.

unixfox avatar unixfox commented on May 31, 2024

Thank you, I'll test that and I'll get back to you if it works or not :).

from bitnami-compat.

unixfox avatar unixfox commented on May 31, 2024

I just tried and unfortunately it doesn't fully work, the containers boots up, but it is missing some librairies for the MariaDB replication:

galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (server 10.6.5-MariaDB-1:10.6.5+maria~buster-log) starting as process 1 ...
galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [Note] WSREP: Loading provider /opt/bitnami/mariadb/lib/libgalera_smm.so initial position: 00000000-0000-0000-0000-000000000000:-1
galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [Note] WSREP: wsrep_load(): loading provider library '/opt/bitnami/mariadb/lib/libgalera_smm.so'
galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [ERROR] WSREP: wsrep_load(): dlopen(): /opt/bitnami/mariadb/lib/libgalera_smm.so: cannot open shared object file: No such file or directory
galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [ERROR] WSREP: Failed to create a new provider '/opt/bitnami/mariadb/lib/libgalera_smm.so' with options '': Failed to load wsrep library
galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [ERROR] WSREP: Failed to load provider
galera-mariadb-galera-1-1  | 2022-02-10 16:09:26 0 [ERROR] Aborting

Here is an example docker-compose file if you want to test:

version: '2.3'

services:
  mariadb-galera-0:
    image: ghcr.io/zcube/bitnami-compat/mariadb-galera:10.6
    environment:
      - MARIADB_GALERA_CLUSTER_NAME=galera
      - MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
      - MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
      - MARIADB_ROOT_PASSWORD=P4SSW0RD123
      - MARIADB_USER=my_user
      - MARIADB_PASSWORD=my_password
      - MARIADB_DATABASE=my_database
      - MARIADB_REPLICATION_USER=my_replication_user
      - MARIADB_REPLICATION_PASSWORD=my_replication_password
    volumes:
      - 'mariadb_galera_data_0:/bitnami/mariadb'
    healthcheck:
      test: ['CMD', '/opt/bitnami/scripts/mariadb-galera/healthcheck.sh']
      interval: 15s
      timeout: 5s
      retries: 6
  mariadb-galera-1:
    image: ghcr.io/zcube/bitnami-compat/mariadb-galera:10.6
    command:
      - bash
      - -ec
      - |
          # Wait 20 seconds to guarantee creation order
          sleep 20
          exec /opt/bitnami/scripts/mariadb-galera/entrypoint.sh /opt/bitnami/scripts/mariadb-galera/run.sh
    environment:
      - MARIADB_GALERA_CLUSTER_NAME=galera
      - MARIADB_GALERA_CLUSTER_ADDRESS=gcomm://mariadb-galera-0:4567,0.0.0.0:4567
      - MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
      - MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
      - MARIADB_ROOT_PASSWORD=P4SSW0RD123
      - MARIADB_REPLICATION_USER=my_replication_user
      - MARIADB_REPLICATION_PASSWORD=my_replication_password
    volumes:
      - 'mariadb_galera_data_1:/bitnami/mariadb'
    healthcheck:
      test: ['CMD', '/opt/bitnami/scripts/mariadb-galera/healthcheck.sh']
      start_period: 20s
      interval: 15s
      timeout: 5s
      retries: 6
    depends_on:
      - mariadb-galera-0

volumes:
  mariadb_galera_data_0:
    driver: local
  mariadb_galera_data_1:
    driver: local

from bitnami-compat.

ZCube avatar ZCube commented on May 31, 2024

@unixfox It will probably work.

from bitnami-compat.

unixfox avatar unixfox commented on May 31, 2024

Thank you, it does indeed work great!

from bitnami-compat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.