From a0c6dffd871cedba8926b2d0d8061ca076bd0aad Mon Sep 17 00:00:00 2001 From: James Polley Date: Thu, 19 Apr 2018 08:02:43 +1000 Subject: [PATCH] If symposion-tools is found, back up the db --- make_dev_container.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/make_dev_container.sh b/make_dev_container.sh index 5e63c4ec..0a94377c 100755 --- a/make_dev_container.sh +++ b/make_dev_container.sh @@ -2,6 +2,12 @@ CONTAINER_NAME=${1:-symposion_app} +if [ -e ./symposion-tools ]; then + pushd ./symposion-tools + ./save_db_from_docker.sh + popd +fi + docker image build -f docker/Dockerfile -t ${CONTAINER_NAME} --target symposion_dev . docker container stop symposion docker container rm symposion