Skip to content

Commit

Permalink
Add docker/supernova.sh - when nukes just won't do
Browse files Browse the repository at this point in the history
  • Loading branch information
jechols committed Jan 24, 2017
1 parent 7b36507 commit 241c042
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docker/supernova.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# supernova.sh: when a nuke just isn't big enough.
#
# Builds upon nuke.sh to remove everything od-related, including the static
# oregondigital/* images in case of a local image build going wrong.
./docker/nuke.sh
csi=$(echo -e "\x1b[")
warn="${csi}31;1m"
info="${csi}34m"
reset="${csi}0m"
echo
echo -ne $warn
echo "Removing all images related to OregonDigital development"
echo -ne $reset
docker rmi $(docker images | grep "oregondigital" | awk '{print $3}')
echo
echo -ne $info
echo "Re-pulling / re-building will automatically happen next time you run"
echo "\`docker-compose up\`"
echo -ne $reset

0 comments on commit 241c042

Please sign in to comment.