Skip to content

Commit 408042c

Browse files
setup docker compose for running integration tests
1 parent eadd972 commit 408042c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
adapter:
2+
build: .
3+
volumes:
4+
- .:/usr/src/app
5+
links:
6+
- mysql
7+
postgres:
8+
image: mysql
9+
environment:
10+
- MYSQL_PASSWORD=mp
11+
- MYSQL_USER=mp
12+
- MYSQL_DATABASE=mppg

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"fasttest": "node ./node_modules/mocha/bin/mocha --recursive",
88
"pretest": "npm run lint",
99
"lint": "eslint machines test",
10+
"docker": "docker-compose run adapter bash"
1011
},
1112
"keywords": [
1213
"mysql",

0 commit comments

Comments
 (0)