initial commit, adding SQL connection and a simple testing on main

This commit is contained in:
Josepablo C.
2025-12-07 08:51:10 -06:00
commit bf78edeec0
16 changed files with 2406 additions and 0 deletions

23
db/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Original author : https://github.com/yobasystems/alpine-mariadb.git
FROM alpine:latest
ARG BUILD_DATE
ARG VCS_REF
RUN apk add --no-cache mariadb mysql-client mariadb-server-utils pwgen && \
rm -f /var/cache/apk/*
RUN mkdir /schemas
COPY schemas /schemas
ADD scripts/run.sh /scripts/run.sh
RUN mkdir /docker-entrypoint-initdb.d && \
mkdir /scripts/pre-exec.d && \
mkdir /scripts/pre-init.d && \
chmod -R 755 /scripts
EXPOSE 3306
VOLUME ["/var/lib/mysql"]
ENTRYPOINT ["/scripts/run.sh"]