dev: mariadb users *
other things also
This commit is contained in:
parent
39f90db91d
commit
a1d2d83f60
11 changed files with 79 additions and 28 deletions
|
|
@ -1,15 +1,17 @@
|
|||
FROM alpine:3.21.3
|
||||
|
||||
RUN apk update
|
||||
RUN apk add mariadb
|
||||
RUN apk add mariadb mariadb-client
|
||||
RUN apk fix
|
||||
|
||||
RUN rm -rf /etc/my.cnf.d/
|
||||
RUN mkdir -p /etc/my.cnf.d/
|
||||
COPY conf/mariadb-server.cnf /etc/my.cnf.d/mariadb-server.cnf
|
||||
COPY run.sh /run.sh
|
||||
COPY ismariadbrunning.sh /ismariadbrunning.sh
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
|
||||
RUN addgroup -S www && adduser -S www www
|
||||
RUN addgroup -S db && adduser -S db db
|
||||
RUN mkdir /db
|
||||
RUN chmod -R 666 /db
|
||||
|
||||
|
|
@ -18,4 +20,4 @@ EXPOSE 3306
|
|||
# start
|
||||
CMD ["/run.sh"]
|
||||
|
||||
HEALTHCHECK --interval=1s --timeout=10s --start-period=600s --retries=1 CMD [ "sh", "-c", "! [ -z \"$(netstat -tuln | grep :3306)\" ]" ]
|
||||
HEALTHCHECK --interval=1s --timeout=10s --start-period=600s --retries=1 CMD [ "/healthcheck.sh" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue