Skip to content

Commit

Permalink
web-app tests using docker (experimental)
Browse files Browse the repository at this point in the history
This provides an way to run the web-app tests using docker (rather than in the vagrant development environment).
  • Loading branch information
GUI committed May 30, 2016
2 parents f4e285c + 75425b4 commit fbea521
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/api-umbrella/web-app/README.md
Expand Up @@ -9,6 +9,25 @@ Please submit any issues to the [primary API Umbrella issue tracker](https://git

To get started, check out the [getting started docs](http://nrel.github.io/api-umbrella/docs/getting-started/).

## Run the tests

### Requirements
* [Ruby](https://www.ruby-lang.org/en/)
* [Bundler](http://bundler.io/)
* [PhantomJS](http://phantomjs.org/download.html)
* [Docker](https://www.docker.com/) or [MongoDB](https://www.docker.com/) and [Elasticsearch](https://www.elastic.co/products/elasticsearch)


### Commands
```bash
#install dependencies
$ bundle install
# run the DB on the correct ports
$ docker-compose up -d
# run the tests
$ bundle exec rake
```

## Features

*TODO: Finish documenting*
Expand Down
10 changes: 10 additions & 0 deletions src/api-umbrella/web-app/docker-compose.yml
@@ -0,0 +1,10 @@
version: '2'
services:
db:
image: mongo:2
ports:
- 14001:27017
logs:
image: elasticsearch:1.5
ports:
- 14002:9200

0 comments on commit fbea521

Please sign in to comment.