aboutsummaryrefslogtreecommitdiff
path: root/docker-scripts
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-09-14 00:06:50 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-09-14 00:06:57 -0400
commit0e82caee0b427dcb957ff78a6c2779e7d9e27dde (patch)
treee5797fdc1e4956c2a60a8f70e8e672670062d376 /docker-scripts
parent4dc24df3bc8043fdbbbd0d9f11b9b78cf658abfd (diff)
downloaddispatch-tracker-0e82caee0b427dcb957ff78a6c2779e7d9e27dde.tar.gz
dispatch-tracker-0e82caee0b427dcb957ff78a6c2779e7d9e27dde.tar.xz
Fully automated setup and forward port 36200
Diffstat (limited to 'docker-scripts')
-rwxr-xr-xdocker-scripts/setup.sh13
-rwxr-xr-xdocker-scripts/shell.sh1
2 files changed, 5 insertions, 9 deletions
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 \