Skip to content

Commit

Permalink
Fix & add mariadb docker instructions (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored Mar 11, 2019
1 parent c3ff9b2 commit 8ca9986
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@ 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:
```
$ 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)

0 comments on commit 8ca9986

Please sign in to comment.