2018-05-06 21:08:49 +02:00
|
|
|
Readme
|
|
|
|
|
|
|
|
|
|
To run inventaire in a docker-compose setup
|
|
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
|
|
Get [docker-compose](https://docs.docker.com/compose/gettingstarted/) on your machine
|
|
|
|
|
|
|
|
|
|
Clone this repo
|
|
|
|
|
```
|
|
|
|
|
git clone https://github.com/inventaire/inventaire-docker.git
|
|
|
|
|
cd inventaire-docker
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
then setup you own inventaire locally within inventaire-docker folder.
|
|
|
|
|
Copy docker utils files into inventaire folder if necessary
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
git clone https://github.com/inventaire/inventaire.git
|
|
|
|
|
cp utils/config/local.coffee inventaire/config/local.coffee
|
|
|
|
|
docker-compose up -d
|
|
|
|
|
```
|
2018-05-08 16:43:17 +02:00
|
|
|
|
|
|
|
|
## Fixtures
|
|
|
|
|
|
|
|
|
|
You will propbably want to play with some fixtures data.
|
|
|
|
|
|
|
|
|
|
- Start the containers
|
|
|
|
|
- Run api tests to populate tests dbs:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
docker-compose exec app npm run test-api
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- Replicate `*-tests` dbs documents into `*` dbs
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
docker-compose exec app npm run replicate-tests-db
|
|
|
|
|
```
|