Skip to content

Commit a88512b

Browse files
committed
add podman
1 parent bc9b354 commit a88512b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,18 @@ Example:
3636
$ cd client
3737
$ go test -args -db test2 -port 3307
3838
```
39+
40+
Testing locally with Docker or Podman can be done like this:
41+
```
42+
podman run \
43+
--rm \
44+
--env MYSQL_ALLOW_EMPTY_PASSWORD=1 \
45+
--env MYSQL_ROOT_HOST='%' \
46+
-p3307:3306 \
47+
-it \
48+
container-registry.oracle.com/mysql/community-server:8.0 \
49+
--gtid-mode=ON \
50+
--enforce-gtid-consistency=ON
51+
```
52+
53+
Substitude `podman` with `docker` if you're using docker. This uses `--rm` to remove the container when it stops. It also enabled GTID by passing options to `mysqld`.

0 commit comments

Comments
 (0)