#!/bin/bash
set -e

git clone https://github.com/ad1217/arkhamdb-json-data

docker-compose up -d

docker-compose exec -T -w /srv/ arkhamdb php bin/console doctrine:schema:create
docker-compose exec -T -w /srv/ arkhamdb php bin/console app:import:std ./arkhamdb-json-data/