File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ if test $( basename $PWD ) ! = " docker"
4+ then
5+ echo " Run this from the docker directory" 1>&2
6+ exit 1
7+ fi
8+
39read -p " Stop and remove all containers, volumes and images for this project? [y/N] " -n 1 -r
410echo
511if [[ $REPLY =~ ^[Yy]$ ]]
612then
713 cd ..
814 echo " Shutting down any instance still running and purge images..."
915 docker compose down -v --rmi all
10- cd docker
1116 echo " Done!"
1217fi
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ if test $( basename $PWD ) ! = " docker"
4+ then
5+ echo " Run this from the docker directory" 1>&2
6+ exit 1
7+ fi
8+
39cd ..
410echo " Shutting down any instance still running..."
511docker compose down
@@ -9,5 +15,5 @@ docker volume rm -f "${PROJNAME}_postgresdb-data"
915echo " Rebuilding the DB image..."
1016docker compose pull db
1117docker compose build --no-cache db
12- cd docker
18+
1319echo " Done!"
You can’t perform that action at this time.
0 commit comments