Skip to content
Snippets Groups Projects
Commit 307b5ff2 authored by Daniel Black's avatar Daniel Black
Browse files

ubi: docker.cnf to match Ubuntu versions

Also when building, ensure that the docker.cnf
is readonly otherwise it won't be read by the server.
parent eac33f60
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ RUN set -eux; \
gosu --version; \
gosu nobody true
COPY docker.cnf /etc/my.cnf.d/
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
COPY MariaDB.repo /etc/yum.repos.d/
......
......@@ -4,6 +4,11 @@
host-cache-size=0
skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci # 10*
[client-server]
socket=/run/mariadb/mariadb.sock
......
......@@ -28,7 +28,7 @@ RUN set -eux; \
gosu --version; \
gosu nobody true
COPY docker.cnf /etc/my.cnf.d/
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
COPY MariaDB.repo /etc/yum.repos.d/
......
......@@ -4,6 +4,11 @@
host-cache-size=0
skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci # 10*
[client-server]
socket=/run/mariadb/mariadb.sock
......
......@@ -28,7 +28,7 @@ RUN set -eux; \
gosu --version; \
gosu nobody true
COPY docker.cnf /etc/my.cnf.d/
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
COPY MariaDB.repo /etc/yum.repos.d/
......
......@@ -4,6 +4,11 @@
host-cache-size=0
skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4
character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+
[client-server]
socket=/run/mariadb/mariadb.sock
......
......@@ -28,7 +28,7 @@ RUN set -eux; \
gosu --version; \
gosu nobody true
COPY docker.cnf /etc/my.cnf.d/
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
COPY MariaDB.repo /etc/yum.repos.d/
......@@ -56,7 +56,7 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=11.5.1
# release-status:RC
# release-support-type:Short Term Support
# release-support-type:Rolling
# (https://downloads.mariadb.org/rest-api/mariadb/)
# missing pwgen(epel), jemalloc(epel) (as entrypoint/user extensions)
......
......@@ -4,6 +4,11 @@
host-cache-size=0
skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4
character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+
[client-server]
socket=/run/mariadb/mariadb.sock
......
......@@ -28,7 +28,7 @@ RUN set -eux; \
gosu --version; \
gosu nobody true
COPY docker.cnf /etc/my.cnf.d/
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
COPY MariaDB.repo /etc/yum.repos.d/
......
......@@ -4,6 +4,12 @@
host-cache-size=0
skip-name-resolve
expire_logs_days=10
character-set-server=utf8mb4
character-set-collations=utf8mb4=uca1400_ai_ci # 11.3+
collation-server=utf8mb4_general_ci # 10*
[client-server]
socket=/run/mariadb/mariadb.sock
......
......@@ -49,7 +49,11 @@ update_version()
else
suite=
fullVersion=$mariaVersion
cp docker.cnf "$dir"
if [[ $version = 10.* ]]; then
sed -e '/character-set-collations/d' docker.cnf > "$dir/docker.cnf"
else
sed -e '/collation-server/d' docker.cnf > "$dir/docker.cnf"
fi
sed -e "s!%%MARIADB_VERSION%%!${version%-*}!" MariaDB-ubi.repo > "$dir"/MariaDB.repo
fi
......
......@@ -171,7 +171,7 @@
"version": "11.5.1",
"fullVersion": "11.5.1",
"releaseStatus": "RC",
"supportType": "Short Term Support",
"supportType": "Rolling",
"base": "ubi9",
"arches": [
"amd64",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment