Projects which depend on this should have a docker-compose.yml
which will run this. The following is for service development
and troubleshooting only:
docker build -t jonamx/dev_mariadb .
docker run -it \
-p 3306:3306 \
--name dev_mariadb \
--env-file ./.env.dev \
-v "$PWD"/db:/var/lib/mariadb \
--rm seancannon/dev_mariadb
Or use the helper scripts which do that for you :
bash ./build.sh
bash ./run.sh
docker rmi $(docker images -a -q)
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)