pica now has mariadb client in environment, and a composition with mariadb to run it
This commit is contained in:
parent
7a54d5025f
commit
d516963219
11 changed files with 110 additions and 16 deletions
19
pica-maria-apache/maria/Dockerfile
Normal file
19
pica-maria-apache/maria/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM alpine:latest
|
||||
RUN \
|
||||
apk add --no-cache \
|
||||
mariadb \
|
||||
mariadb-client \
|
||||
&& \
|
||||
mkdir -p /run/mysqld && \
|
||||
chown mysql:mysql /run/mysqld
|
||||
|
||||
COPY my.cnf /etc/mysql/my.cnf
|
||||
COPY createDB.sql /root/
|
||||
COPY createDB.sh /root/
|
||||
|
||||
RUN mysql_install_db && \
|
||||
chmod +x root/createDB.sh && \
|
||||
root/createDB.sh
|
||||
|
||||
CMD ["mysqld", "--console"]
|
Loading…
Add table
Add a link
Reference in a new issue