From db87a0f3a101ba3b4aaed5237824e82f95fc14c1 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Fri, 4 Nov 2022 23:51:32 +0100 Subject: [PATCH] Move temporary db into container and show docker run command --- core/admin/run_dev.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/core/admin/run_dev.sh b/core/admin/run_dev.sh index a682252c..4a0120c9 100755 --- a/core/admin/run_dev.sh +++ b/core/admin/run_dev.sh @@ -93,12 +93,7 @@ cat Dockerfile # gather volumes to map into container volumes=() -if [[ -n "${DEV_DB}" ]]; then - volumes+=( --volume "${DEV_DB}:/data/main.db" ) -else - mkdir -p "data" - volumes=( --volume "${tmp}/data/:/data/" ) -fi +[[ -n "${DEV_DB}" ]] && volumes+=( --volume "${DEV_DB}:/data/main.db" ) for vol in audit.py start.py mailu/ migrations/; do volumes+=( --volume "${admin}/${vol}:/app/${vol}" ) @@ -113,6 +108,8 @@ done cat <