2017-11-05 16:41:37 +00:00
|
|
|
all: copy_environment_settings build db_up sleep migrate bootstrap web_up
|
|
|
|
|
|
|
|
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
|