From 8ca9986df139ebe0094d146b53a98d1797ff5d83 Mon Sep 17 00:00:00 2001 From: Dale Wijnand <344610+dwijnand@users.noreply.github.com> Date: Mon, 11 Mar 2019 10:18:40 +0000 Subject: [PATCH] Fix & add mariadb docker instructions (#262) --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ca19503..28e9f57f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Requirements for minimal local installation (e.g. for previewing changes when re - or a local MariaDB database called "test" using Docker: ``` - $ docker run -d --name play.com-mariadb -p 3306 -e MYSQL_DATABASE=test -e MYSQL_ALLOW_EMPTY_PASSWORD=true mariadb:10.4 + $ docker run -d --name play.com-mariadb -p 3306:3306 -e MYSQL_DATABASE=test -e MYSQL_ALLOW_EMPTY_PASSWORD=true mariadb:10.4 ``` Test connection: @@ -46,5 +46,10 @@ Requirements for minimal local installation (e.g. for previewing changes when re $ docker run -it --rm --link play.com-mariadb:mysql mariadb sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" test' ``` + Stop and remove the container: + ``` + $ docker stop play.com-mariadb && docker rm $_ + ``` + Requirements for unit tests: - local MySQL database called "playunittest" (some tests will fail if this DB doesn't exist)