[bitnami/mariadb-galera] Release 10.11.6-debian-11-r5 (#55046)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2024-01-20 00:48:07 +01:00
committed by GitHub
parent bef59c6178
commit 882994c200
4 changed files with 74 additions and 11 deletions
@@ -7,10 +7,10 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2024-01-07T18:51:37Z" \
org.opencontainers.image.created="2024-01-19T23:11:30Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="10.11.6-debian-11-r4" \
org.opencontainers.image.ref.name="10.11.6-debian-11-r5" \
org.opencontainers.image.title="mariadb-galera" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="10.11.6"
@@ -26,7 +26,7 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
RUN install_packages ca-certificates curl iproute2 ldap-utils libaio1 libaudit1 libcap-ng0 libcrypt1 libgcc-s1 libicu67 libldap-common liblzma5 libncurses6 libpam-ldapd libpam0g libssl1.1 libstdc++6 libtinfo6 libxml2 nslcd procps psmisc rsync socat zlib1g
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
COMPONENTS=( \
"ini-file-1.4.6-4-linux-${OS_ARCH}-debian-11" \
"ini-file-1.4.6-5-linux-${OS_ARCH}-debian-11" \
"mariadb-galera-10.11.6-10-linux-${OS_ARCH}-debian-11" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \
@@ -42,6 +42,7 @@ RUN apt-get autoremove --purge -y curl && \
apt-get update && apt-get upgrade -y && \
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
RUN mkdir /docker-entrypoint-initdb.d
COPY rootfs /
@@ -3,7 +3,7 @@
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "1.4.6-4"
"version": "1.4.6-5"
},
"mariadb-galera": {
"arch": "amd64",
@@ -40,6 +40,7 @@ mariadb_env_vars=(
MARIADB_REPLICATION_PASSWORD
MARIADB_PORT_NUMBER
MARIADB_REPLICATION_MODE
MARIADB_REPLICATION_SLAVE_DUMP
MARIADB_EXTRA_FLAGS
MARIADB_INIT_SLEEP_TIME
MARIADB_CHARACTER_SET
@@ -151,6 +152,8 @@ export MARIADB_PORT_NUMBER="${MARIADB_PORT_NUMBER:-}"
export DB_PORT_NUMBER="$MARIADB_PORT_NUMBER"
export MARIADB_REPLICATION_MODE="${MARIADB_REPLICATION_MODE:-}"
export DB_REPLICATION_MODE="$MARIADB_REPLICATION_MODE"
export MARIADB_REPLICATION_SLAVE_DUMP="${MARIADB_REPLICATION_SLAVE_DUMP:-false}"
export DB_REPLICATION_SLAVE_DUMP="$MARIADB_REPLICATION_SLAVE_DUMP"
export MARIADB_EXTRA_FLAGS="${MARIADB_EXTRA_FLAGS:-}"
export DB_EXTRA_FLAGS="$MARIADB_EXTRA_FLAGS"
export MARIADB_INIT_SLEEP_TIME="${MARIADB_INIT_SLEEP_TIME:-}"
+66 -7
View File
@@ -15,13 +15,6 @@ docker run --name mariadb \
bitnami/mariadb-galera:latest
```
### Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/mariadb-galera/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
**Warning**: These quick setups are only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options in the [Configuration](#configuration) section for a more secure deployment.
## Why use Bitnami Images?
@@ -175,6 +168,66 @@ docker-compose up -d
## Configuration
### Environment variables
#### Customizable environment variables
| Name | Description | Default Value |
|---------------------------------------|---------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| `ALLOW_EMPTY_PASSWORD` | Allow MariaDB Galera access without any password. | `no` |
| `MARIADB_ROOT_USER` | MariaDB Galera database root user. | `root` |
| `MARIADB_MASTER_PORT_NUMBER` | Port number for the MariaDB Galera master node. | `3306` |
| `MARIADB_MASTER_ROOT_USER` | MariaDB Galera database root user of the master host. | `root` |
| `MARIADB_MASTER_DELAY` | MariaDB Galera database replication delay. | `0` |
| `MARIADB_REPLICATION_SLAVE_DUMP` | Make a dump on master and update slave MariaDB Galera database | `false` |
| `MARIADB_SKIP_TEST_DB` | Whether to skip creating the test database. | `no` |
| `MARIADB_CLIENT_ENABLE_SSL` | Whether to force SSL for connections to the MariaDB Galera database. | `no` |
| `MARIADB_CLIENT_EXTRA_FLAGS` | Whether to force SSL connections with the "mysql" CLI tool. Useful for applications that rely on the CLI instead of APIs. | `no` |
| `MARIADB_STARTUP_WAIT_RETRIES` | Number of retries waiting for the database to be running. | `300` |
| `MARIADB_STARTUP_WAIT_SLEEP_TIME` | Sleep time between retries waiting for the database to be running. | `2` |
| `MARIADB_ENABLE_SLOW_QUERY` | Whether to enable slow query logs. | `0` |
| `MARIADB_LONG_QUERY_TIME` | How much time, in seconds, defines a slow query. | `10.0` |
| `MARIADB_GALERA_CONF_DIR` | MariaDB Galera configuration directory | `/opt/bitnami/mariadb/conf` |
| `MARIADB_GALERA_MOUNTED_CONF_DIR` | Directory for including custom configuration files (that override the default generated ones) | `/bitnami/conf` |
| `MARIADB_GALERA_CLUSTER_NAME` | Galera cluster name. | `$DB_GALERA_DEFAULT_CLUSTER_NAME` |
| `MARIADB_GALERA_SST_METHOD` | State Snapshot Transfer (SST) method to use. | `$DB_GALERA_DEFAULT_SST_METHOD` |
| `MARIADB_GALERA_MARIABACKUP_USER` | Username to use with the "mariabackup" tool for State Snapshot Transfer (SST). | `$DB_GALERA_DEFAULT_MARIABACKUP_USER` |
| `MARIADB_GALERA_MARIABACKUP_PASSWORD` | Password for the username to use with the "mariabackup" tool for State Snapshot Transfer (SST). | `$DB_GALERA_DEFAULT_MARIABACKUP_PASSWORD` |
| `MARIADB_ENABLE_LDAP` | Whether to enable LDAP for MariaDB Galera. | `no` |
| `MARIADB_ENABLE_TLS` | Whether to enable SSL/TLS for MariaDB Galera. | `no` |
| `MARIADB_REPLICATION_USER` | MariaDB Galera replication database user. | `monitor` |
| `MARIADB_REPLICATION_PASSWORD` | Password for the MariaDB Galera replication database user. | `monitor` |
#### Read-only environment variables
| Name | Description | Value |
|-------------------------------------------|---------------------------------------------------------------------------------------------------------------------|-----------------------------------|
| `DB_FLAVOR` | SQL database flavor. Valid values: `mariadb` or `mysql`. | `mariadb` |
| `DB_BASE_DIR` | Base path for MariaDB Galera files. | `${BITNAMI_ROOT_DIR}/mariadb` |
| `DB_VOLUME_DIR` | MariaDB Galera directory for persisted files. | `${BITNAMI_VOLUME_DIR}/mariadb` |
| `DB_DATA_DIR` | MariaDB Galera directory for data files. | `${DB_VOLUME_DIR}/data` |
| `DB_BIN_DIR` | MariaDB Galera directory where executable binary files are located. | `${DB_BASE_DIR}/bin` |
| `DB_SBIN_DIR` | MariaDB Galera directory where service binary files are located. | `${DB_BASE_DIR}/sbin` |
| `DB_CONF_DIR` | MariaDB Galera configuration directory. | `${DB_BASE_DIR}/conf` |
| `DB_LOGS_DIR` | MariaDB Galera logs directory. | `${DB_BASE_DIR}/logs` |
| `DB_TMP_DIR` | MariaDB Galera directory for temporary files. | `${DB_BASE_DIR}/tmp` |
| `DB_CONF_FILE` | Main MariaDB Galera configuration file. | `${DB_CONF_DIR}/my.cnf` |
| `DB_PID_FILE` | MariaDB Galera PID file. | `${DB_TMP_DIR}/mysqld.pid` |
| `DB_SOCKET_FILE` | MariaDB Galera Server socket file. | `${DB_TMP_DIR}/mysql.sock` |
| `DB_DAEMON_USER` | Users that will execute the MariaDB Galera Server process. | `mysql` |
| `DB_DAEMON_GROUP` | Group that will execute the MariaDB Galera Server process. | `mysql` |
| `MARIADB_DEFAULT_PORT_NUMBER` | Default port number to use for the MariaDB Galera Server service. | `3306` |
| `MARIADB_DEFAULT_CHARACTER_SET` | Default MariaDB Galera character set. | `utf8mb4` |
| `MARIADB_DEFAULT_BIND_ADDRESS` | Default MariaDB Galera bind address. | `0.0.0.0` |
| `MARIADB_DISABLE_SERVICE` | Whether to disable the MariaDB Galera service by default. | `no` |
| `MARIADB_GALERA_GRASTATE_FILE` | Path to the Galera "grastate.dat" file. | `${DB_DATA_DIR}/grastate.dat` |
| `MARIADB_GALERA_BOOTSTRAP_DIR` | Path to the Galera directory that will contain a file for checking whether the node is already bootstrapped or not. | `${DB_VOLUME_DIR}/.bootstrap` |
| `MARIADB_GALERA_BOOTSTRAP_FILE` | Path to the Galera file that will check whether the node is already bootstrapped or not. | `${DB_GALERA_BOOTSTRAP_DIR}/done` |
| `MARIADB_GALERA_DEFAULT_CLUSTER_ADDRESS` | Default Galera cluster address. | `gcomm://` |
| `MARIADB_GALERA_DEFAULT_CLUSTER_NAME` | Default Galera cluster name. | `galera` |
| `MARIADB_GALERA_DEFAULT_SST_METHOD` | Default State Snapshot Transfer (SST) method to use. | `mariabackup` |
| `MARIADB_GALERA_DEFAULT_MARIABACKUP_USER` | Default username to use with the "mariabackup" tool for State Snapshot Transfer (SST). | `mariabackup` |
### Initializing a new instance
When the container is executed for the first time, it will execute the files with extensions `.sh`, `.sql` and `.sql.gz` located at `/docker-entrypoint-startdb.d`.
@@ -701,6 +754,12 @@ docker-compose up mariadb
* `10.1.43-centos-7-r78`, `10.2.30-centos-7-r40`, `10.3.21-centos-7-r41`, and `10.4.11-centos-7-r32` are considered the latest images based on CentOS.
* Standard supported distros: Debian & OEL.
## Using `docker-compose.yaml`
Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated [Bitnami Helm chart](https://github.com/bitnami/charts/tree/main/bitnami/mariadb-galera).
If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).
## Contributing
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/containers/issues) or submitting a [pull request](https://github.com/bitnami/containers/pulls) with your contribution.