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.
This commit is contained in:
parent
eac33f601e
commit
307b5ff2b5
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user