2020-10-16 13:11:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd "$(dirname $0)"
|
|
|
|
|
|
|
|
# first argument is the example data
|
|
|
|
DATA=$(cat ${1:-../docs/example-data.json})
|
|
|
|
./clear-ds.sh
|
2020-11-03 11:33:23 +01:00
|
|
|
docker-compose -f ../docker/docker-compose.dev.yml exec datastore-writer \
|
2020-10-16 13:11:00 +02:00
|
|
|
bash -c "source export-database-variables.sh; echo '$DATA' > /data.json; export DATASTORE_INITIAL_DATA_FILE=/data.json; python cli/create_initial_data.py"
|