risks

Install

On linux, run the following command

git clone https://github.com/ouhouhsami/risks
cd risks
docker-compose up

Due to sync issues between containers, you may also need to migrate and create a superuser. See src/scripts/start_web.sh for more information.

If you want to recover data, fill the db with the appropriate dump

eval "$(docker-machine env risks)"  # not for Linux
docker-compose run db /srv/data/backup/restore_db.sh

Help on docker on OSX

Create a docker machine

docker-machine create --driver virtualbox --virtualbox-memory 8096 risks

List all docker machines

docker-machine ls

Stop a docker machine

docker-machine stop risks

Start a docker machine

docker-machine start risks

Set env variable the right way

eval "$(docker-machine env risks)"

To get the VM IP address

docker-machine ip risks

docker-compose

docker-compose build risks
docker-compose build --no-cache risks
docker-compose run risks command
docker-compose up risks
docker-compose stop

Install docker-compose

sudo -i
mkdir -p /opt/bin
curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
exit