2017-11-05 16:46:26 +00:00
|
|
|
all: copy_environment_settings build db_up sleep migrate bootstrap
|
2017-11-05 16:41:37 +00:00
|
|
|
|
|
|
|
copy_environment_settings:
|
|
|
|
cp src/bornhack/dev_environment_settings.py src/bornhack/environment_settings.py
|
2017-11-05 16:26:20 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
docker-compose build
|
|
|
|
|
|
|
|
db_up:
|
|
|
|
docker-compose up -d db
|
|
|
|
|
|
|
|
migrate:
|
|
|
|
docker-compose run web /usr/local/bin/python src/manage.py migrate
|
|
|
|
|
|
|
|
bootstrap:
|
|
|
|
docker-compose run web /usr/local/bin/python src/manage.py bootstrap-devsite
|
|
|
|
|
|
|
|
sleep:
|
|
|
|
echo "Sleeping to ensure that the db is up."; sleep 3
|
|
|
|
|
|
|
|
web_up:
|
|
|
|
docker-compose up web
|
2017-11-05 16:46:26 +00:00
|
|
|
|
|
|
|
run: db_up web_up
|