Files
42_INT_13_inception/srcs/requirements/mariadb/Dockerfile
2022-09-06 12:45:50 +02:00

12 lines
366 B
Docker

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