-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker/supernova.sh - when nukes just won't do
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |