Change dev container build to load only the initial conference state

This commit is contained in:
James Polley 2018-04-19 07:10:33 +10:00
parent 34c7beec35
commit 026199faf3
No known key found for this signature in database
GPG key ID: ED9F8A8538E21957

View file

@ -8,13 +8,14 @@ docker container rm symposion
docker container create --env-file docker/laptop-mode-env -p 28000:8000 -v $(pwd):/app/symposion_app --name symposion ${CONTAINER_NAME}
docker container start symposion
docker exec symposion ./manage.py migrate
docker exec symposion ./manage.py loaddata ./fixtures/*.json
docker exec symposion ./manage.py populate_inventory
docker exec symposion ./manage.py loaddata ./fixtures/{conference,sites,sitetree,proposal_base}.json
docker exec symposion ./manage.py create_review_permissions
docker exec symposion ./manage.py loaddata ./fixtures/miniconf-fixtures/*.json
#docker exec symposion ./manage.py populate_inventory
#docker exec symposion ./manage.py loaddata ./fixtures/miniconf-fixtures/*.json
if [ -e ./symposion-tools ]; then
pushd ./symposion-tools
./load_chunks_local.sh
./fixture_to_docker.sh fixtures/dev_dummy_superuser.json
./fixture_to_docker.sh fixtures/????_*.json
popd
else
docker exec -it symposion ./manage.py createsuperuser --username root --email root@example.com