[info=ffb8e6a28641ef3bcbdf27b993761e91]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/mariadb-image?expand=0&rev=178
This commit is contained in:
2024-11-18 09:34:06 +00:00
committed by Git OBS Bridge
parent 48a661f2e6
commit c8dc9cf577
4 changed files with 11 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
#!BuildTag: opensuse/mariadb:%%mariadb_version%%-%RELEASE%
#!BuildTag: opensuse/mariadb:%%mariadb_version%%
#!BuildTag: opensuse/mariadb:11.5
#!BuildTag: opensuse/mariadb:11.6
#!BuildTag: opensuse/mariadb:latest
FROM opensuse/tumbleweed:latest
@@ -47,7 +47,7 @@ ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["mariadbd"]
EXPOSE 3306/tcp
# sanity check that the version from the tag is equal to the version of mariadb-client that we expect
RUN set -euo pipefail; [ "$(rpm -q --qf '%{version}' mariadb-client | cut -d '.' -f -2)" = "11.5" ]
RUN set -euo pipefail; [ "$(rpm -q --qf '%{version}' mariadb-client | cut -d '.' -f -2)" = "11.6" ]
RUN set -euo pipefail; mkdir /docker-entrypoint-initdb.d

View File

@@ -12,13 +12,13 @@ By default, the image launches MariaDB with the same configuration that comes wi
The only environment variable required to start the container is the MariaDB root password.
```ShellSession
$ podman run -it --rm -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.opensuse.org/opensuse/mariadb:11.5
$ podman run -it --rm -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.opensuse.org/opensuse/mariadb:11.6
```
or:
```ShellSession
$ podman run -it --rm -p 3306:3306 -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 registry.opensuse.org/opensuse/mariadb:11.5
$ podman run -it --rm -p 3306:3306 -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 registry.opensuse.org/opensuse/mariadb:11.6
```
### Volumes
@@ -33,7 +33,7 @@ When using the MariaDB image, we recommend one of the following options:
To mount a host directory as a volume for your data run the following command:
```ShellSession
$ podman run -it --rm -v /my/own/datadir:/var/lib/mysql:Z -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.opensuse.org/opensuse/mariadb:11.5
$ podman run -it --rm -v /my/own/datadir:/var/lib/mysql:Z -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.opensuse.org/opensuse/mariadb:11.6
```
The `-v /my/own/datadir:/var/lib/mysql:Z` part of the command mounts the `/my/own/datadir` directory from the underlying host system as `/var/lib/mysql` inside the container, where MariaDB will by default write its data files.

View File

@@ -225,7 +225,7 @@ docker_create_db_directories() {
}
_mariadb_version() {
echo -n "11.4.4-MariaDB"
echo -n "%%mariadb_version%%-MariaDB"
}
# initializes the database directory

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 18 09:27:58 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- update to 11.6 mariadb
-------------------------------------------------------------------
Tue Nov 12 15:34:21 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>