1
0

」 feat: fuck bash

This commit is contained in:
2025-01-04 17:58:17 +01:00
parent 2cf69a0969
commit 774b012871
7 changed files with 130 additions and 12 deletions

View File

@ -4,21 +4,20 @@ LABEL version="0.1"
LABEL maintainer="KeyZox"
RUN groupadd --gid 999 -r mysql \
&& useradd -r -g mysql mysql --home-dir /var/lib/mysql --uid 999
&& useradd -r -g mysql mysql --home-dir /var/lib/mysql --uid 999 \
&& echo 'permit nopass root as mysql' >> /etc/doas.conf
ENV LANG C.UTF-8
COPY --chmod=0644 docker.cnf /etc/my.cnf.d/
RUN set -x \
&& apk add --no-cache mariadb gosu tzdata \
&& gosu --version \
&& gosu nobody true \
&& apk add --no-cache mariadb tzdata doas \
VOLUME /var/lib/mysql
COPY healthcheck.sh /healthcheck.sh
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN [ "chmod", "+x", "/docker-entrypoint.sh" ]
RUN [ "chmod", "+x", "/healthcheck.sh" ]
COPY --chmod=0741 healthcheck.sh /healthcheck.sh
COPY --chmod=0741 docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ]
WORKDIR /var/lib/mysql

View File

@ -1,3 +1,3 @@
#!/bin/sh
exec $@
exec "$@"

View File

@ -0,0 +1,14 @@
# Ubuntu container compatibility
[mariadb]
host-cache-size=0
skip-name-resolve
expire_logs_days=10
[client-server]
socket=/run/mariadb/mariadb.sock
!includedir /etc/mysql/mariadb.conf.d
!includedir /etc/mysql/conf.d

View File

@ -0,0 +1 @@
#!/bin/sh

View File

@ -1,3 +1,4 @@
#!/bin/sh
set -e
exec "$@"