Skip to content

Commit

Permalink
update compose files and tests for nats backend
Browse files Browse the repository at this point in the history
  • Loading branch information
esatterwhite committed Dec 26, 2016
1 parent c984a7d commit 1488b5c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 26 deletions.
24 changes: 12 additions & 12 deletions compose/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,64 @@ services:
environment:
DEBUG: '*'
channel__host: 'node-1'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
seeds: 'node-1:3455,node-2:3456'
networks:
- skyring
depends_on:
- redis
- nats

node-2:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-2'
channel__port: 3456
networks:
- skyring
depends_on:
- redis
- nats

node-3:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-3'
networks:
- skyring
depends_on:
- redis
- nats

node-4:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-4'
networks:
- skyring
depends_on:
- redis
- nats

node-5:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-5'
networks:
- skyring
depends_on:
- redis
- nats

redis:
image: redis:latest
nats:
image: nats:latest
networks:
- skyring

Expand Down
24 changes: 12 additions & 12 deletions compose/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,70 @@ services:
environment:
DEBUG: '*'
channel__host: 'node-1'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
seeds: 'node-1:3455,node-2:3456'
networks:
- skyring
depends_on:
- redis
- nats

node-2:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-2'
channel__port: 3456
networks:
- skyring
depends_on:
- redis
- nats

node-3:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-3'
networks:
- skyring
depends_on:
- redis
- nats

node-4:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-4'
networks:
- skyring
depends_on:
- redis
- nats

node-5:
build: ../
environment:
DEBUG: '*'
seeds: 'node-1:3455,node-2:3456'
redis__hosts: 'redis:6379'
nats__hosts: 'nats:4222'
channel__host: 'node-5'
networks:
- skyring
depends_on:
- redis
- nats
- node-1
- node-2
- node-3
- node-4
command: >
npm test
redis:
image: redis:latest
nats:
image: nats:latest
networks:
- skyring

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "mocha ./test/**/*.spec.js",
"test:ci": "docker-compose -f compose/test.yml up --abort-on-container-exit",
"test:ci": "docker-compose -f compose/test.yml up --abort-on-container-exit --build",
"posttest:ci": "docker-compose -f compose/test.yml down",
"compose:up": "docker-compose -f compose/dev.yml up --build ",
"compose:down": "docker-compose -f compose/dev.yml down"
Expand All @@ -22,7 +22,6 @@
"dependencies": {
"body": "^5.1.0",
"debug": "^2.2.0",
"ioredis": "^2.4.0",
"keef": "^1.1.1",
"nats": "^0.6.8",
"path-to-regexp": "^1.7.0",
Expand Down

0 comments on commit 1488b5c

Please sign in to comment.