「✨」 feat: fuck bash
This commit is contained in:
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec $@
|
||||
exec "$@"
|
||||
|
14
srcs/requirements/mariadb/docker.cnf
Normal file
14
srcs/requirements/mariadb/docker.cnf
Normal 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
|
1
srcs/requirements/mariadb/healthcheck.sh
Normal file
1
srcs/requirements/mariadb/healthcheck.sh
Normal file
@ -0,0 +1 @@
|
||||
#!/bin/sh
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
exec "$@"
|
||||
|
Reference in New Issue
Block a user