File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
.internal/templates/services/mariadb/buildFiles Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11# Download base image
22FROM ghcr.io/linuxserver/mariadb
33
4+ # candidates for customisation are
5+ ENV CANDIDATES="/defaults/my.cnf /defaults/custom.cnf"
6+
47# apply stability patches recommended in
58#
69# https://discord.com/channels/638610460567928832/638610461109256194/825049573520965703
710# https://stackoverflow.com/questions/61809270/how-to-discover-why-mariadb-crashes
8- RUN sed -i.bak \
9- -e "s/^thread_cache_size/# thread_cache_size/" \
10- -e "s/^read_buffer_size/# read_buffer_size/" \
11- /defaults/my.cnf
11+ RUN for CNF in ${CANDIDATES} ; do [ -f ${CNF} ] && break ; done ; \
12+ sed -i.bak \
13+ -e "s/^thread_cache_size/# thread_cache_size/" \
14+ -e "s/^read_buffer_size/# read_buffer_size/" \
15+ ${CNF}
1216
1317# copy the health-check script into place
1418ENV HEALTHCHECK_SCRIPT "iotstack_healthcheck.sh"
@@ -22,4 +26,6 @@ HEALTHCHECK \
2226 --retries=3 \
2327 CMD ${HEALTHCHECK_SCRIPT} || exit 1
2428
29+ ENV CANDIDATES=
30+
2531# EOF
You can’t perform that action at this time.
0 commit comments