Skip to content

Commit 2411644

Browse files
committed
Add docker config and readme on how to use it.
1 parent 48b0193 commit 2411644

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

integration-tests/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Integration Tests for MySQL Native
2+
==================================
3+
4+
This sub-project is intended for proving the functionality of the project against a database instance.
5+
6+
See the instructions in the [main README](../README.md#developers---how-to-run-the-test-suite) on how to use this subpackage.
7+
8+
## Docker image
9+
10+
A docker-compose.yml is supplied for convenience when testing locally. It's preconfigured to use the same username/password that is used by default.
11+
12+
To run tests on your machine, presuming docker is installed, simply run:
13+
14+
```
15+
$ docker-compose up --detach
16+
```
17+
18+
Once you are finished, tear down the docker instance
19+
20+
```
21+
$ docker-compose down
22+
```

integration-tests/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: '3.7'
2+
services:
3+
mysql:
4+
# Don't use latest (MySQL Server 8.0) as we cannot currently support it
5+
image: mysql:5.7
6+
restart: always
7+
ports: ['3306:3306']
8+
environment:
9+
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
10+
- MYSQL_DATABASE=mysqln_testdb
11+
- MYSQL_USER=mysqln_test
12+
- MYSQL_PASSWORD=pass123

0 commit comments

Comments
 (0)