Files
42_INT_13_inception/srcs/requirements/mariadb/Dockerfile
2022-09-06 17:37:52 +02:00

16 lines
449 B
Docker

FROM debian:buster
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y mariadb-client mariadb-server && \
rm -rf /var/lib/apt/lists/* && \
\
service mysql start && \
mariadb --execute="create database db_hugo_test;" && \
mariadb --execute="create user 'u_hugo_test'@'localhost' identified by 'hello';" && \
mariadb --execute="grant all privileges on *.* to 'u_hugo_test'@'localhost' with grant option;"
CMD [ "mysqld" ]