Skip to content

Commit 672b564

Browse files
author
Gavin Morris
committed
Draft 2 - max_packet_now has default env but still NOT dynamic. Confd env values ignored
1 parent 3fdce2d commit 672b564

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

mariadb/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ RUN --mount=type=cache,id=mariadb-apk-${TARGETARCH},sharing=locked,target=/var/c
2323
# base image. Set to 10 minutes just incase it ran on very old or overallocated
2424
# hardware.
2525
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=600000
26+
# Default value of 256 MB in bytes
27+
ENV DB_MAX_ALLOWED_PACKET=268435456
2628

2729
COPY --link rootfs /

mariadb/rootfs/etc/s6-overlay/s6-rc.d/set-max-packet/dependencies.d/ready

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/scripts/set-max-packet.sh

mariadb/rootfs/etc/s6-overlay/scripts/set-max-packet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# shellcheck shell=bash
33
set -e
44

5-
# Use what has been provided by the user or default to the derived values.
5+
# Use what has been provided by the user or default value of 256M
66
cat <<EOF | /usr/local/bin/confd-import-environment.sh
77
DB_MAX_ALLOWED_PACKET={{ getenv "DB_MAX_ALLOWED_PACKET" "${DB_MAX_ALLOWED_PACKET}" }}
88
EOF

0 commit comments

Comments
 (0)