From 0e82caee0b427dcb957ff78a6c2779e7d9e27dde Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 14 Sep 2019 00:06:50 -0400 Subject: Fully automated setup and forward port 36200 --- docker-scripts/setup.sh | 13 ++++--------- docker-scripts/shell.sh | 1 + 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'docker-scripts') diff --git a/docker-scripts/setup.sh b/docker-scripts/setup.sh index e036aa8..6e4ff18 100755 --- a/docker-scripts/setup.sh +++ b/docker-scripts/setup.sh @@ -11,16 +11,11 @@ docker run --rm -it \ cd /app; export CUSTOM_CONFIG=config-compose.yml echo "create database dispatch;" | psql -U postgres -h postgres - python3 ./manage.py collectstatic + python3 ./manage.py collectstatic --no-input python3 ./manage.py migrate - python3 ./manage.py createsuperuser - - v="" - while ! [ "$v" = "done" ] ; do - printf "Please login to the system and fill out the form," - printf "then come back, type \"done\" to continue:\t" - read v; - done + # python3 ./manage.py createsuperuser + python3 ./manage.py setup + python3 ./manage.py setup_identity python3 ./manage.py insert_fake_data --companies 10 --users 10 \ --loads 400 --start-date='"'"'-16w'"'"' --end-date='"'"'+16w'"'"' \ diff --git a/docker-scripts/shell.sh b/docker-scripts/shell.sh index 4a417c0..c9ae91f 100755 --- a/docker-scripts/shell.sh +++ b/docker-scripts/shell.sh @@ -4,6 +4,7 @@ docker run --rm -it \ --network dispatch-tracker_backend \ + -e CUSTOM_CONFIG=config-compose.yml \ -v $(pwd)/static:/static \ -v $(pwd)/app:/app \ --user 0 \ -- cgit v1.2.3