Skip to content

Commit

Permalink
devlab 2 binci
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Aug 26, 2017
1 parent ae6f7ae commit bb2f416
Show file tree
Hide file tree
Showing 5 changed files with 11,215 additions and 33 deletions.
6 changes: 3 additions & 3 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ These are the main *npm* commands during a standard developer workflow:
| npm command | details |
|----------------|----------|
| `npm install` | Install dependencies |
| `npm run devlabinstall` | Install services such as Rabbitmq and Postgresql though docker |
| `npm run setup` | Install Rabbitmq and Postgresql docker containers through binci |
| `npm start` | Start the backend |
| `npm test` | Run the tests and generate a code coverage |
| `npm run mocha`| Run the tests |
Expand Down Expand Up @@ -197,10 +197,10 @@ Here is a typical configuration:
## Docker containers

### For development
To install the docker containers for the various services such as RabbitMq and Postgres on the local machine, the [DevLab](https://github.com/TechnologyAdvice/DevLab) project is being used to containerize the development workflow, see its configuration file: [devlab.yml](server/devlab.yml)
To install the docker containers for the various services such as RabbitMq and Postgres on the local machine, the [Binci](https://github.com/binci/binci) project is being used to containerize the development workflow, see its configuration file: [binci.yml](server/binci.yml)

# cd server
# npm run devlabinstall
# npm run setup &

To check that the containers are running:

Expand Down
27 changes: 27 additions & 0 deletions server/binci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from: node:8
services:
- rabbitmq:
from: gonkulatorlabs/rabbitmq
expose:
- 5672:5672
- postgres:
from: kiasaki/alpine-postgres
env:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=dev
expose:
- 5432:5432
expose:
- 9000:9000
quiet: false
forward: true
tasks:
env: env | sleep 300000
clean: npm run clean
install: env
test: npm run test
lint: npm run lint
build: npm run build
start: npm start
ci: .lint .test .build
27 changes: 0 additions & 27 deletions server/devlab.yml

This file was deleted.

0 comments on commit bb2f416

Please sign in to comment.