forked from KILTprotocol/sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (25 loc) · 1.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# allows running tests and integration tests in a dockerized environment
# `docker-compose run sdk` will run integration tests using the latest
# mashnet-node image on dockerhub. The src/ directory is mounted, so rebuilding
# is not required to integrate changes in this directory.
# `docker-compose run sdk yarn test:integration:run Attestation` would run specific tests.
# In order to test against the current state of the develop branch, you can build a mashnet-node
# image locally by telling docker-compose to use the override file `dc.build.node.yml` like so:
# `docker-compose -f docker-compose.yml -f dc.build.node.yml run sdk`. Alternatively you could
# rename `dc.build.node.yml` to `docker-compose.override.yml`, in which case docker-compose
# loads it by default
version: '3.2'
services:
dev-node:
image: kiltprotocol/mashnet-node:develop
command: '--dev --ws-port 9944 --ws-external'
sdk:
build: .
image: local/sdk-js
volumes:
- ./src:/app/src
environment:
DEFAULT_WS_ADDRESS: ws://dev-node:9944
command: 'yarn test:integration'
depends_on:
- dev-node