If symposion-tools is found, back up the db

This commit is contained in:
James Polley 2018-04-19 08:02:43 +10:00
parent b366c7809e
commit a0c6dffd87
No known key found for this signature in database
GPG key ID: ED9F8A8538E21957

View file

@ -2,6 +2,12 @@
CONTAINER_NAME=${1:-symposion_app} 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 image build -f docker/Dockerfile -t ${CONTAINER_NAME} --target symposion_dev .
docker container stop symposion docker container stop symposion
docker container rm symposion docker container rm symposion