File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,15 +18,20 @@ start() {
1818}
1919
2020stop () {
21+ log_info " Stopping HPC Toolset Cluster containers.."
22+ docker-compose stop
23+ }
24+
25+ destroy () {
2126 log_info " Stopping and removing HPC Toolset Cluster containers and volumes.."
2227 docker-compose stop && \
2328 docker-compose rm -f -v && \
2429 docker-compose down -v
2530}
2631
2732cleanup () {
28- log_info " Cleaning up HPC Toolset containers and images.."
29- stop
33+ log_info " Removing HPC Toolset containers and images.."
34+ destroy
3035 docker rmi $( docker images -f " reference=ubccr/hpcts*" -q)
3136}
3237
@@ -40,8 +45,11 @@ case "$1" in
4045 ' cleanup' )
4146 cleanup
4247 ;;
48+ ' destroy' )
49+ destroy
50+ ;;
4351 * )
44- log_info " Usage: $0 { start | stop | cleanup}"
52+ log_info " Usage: $0 { start | stop | destroy | cleanup}"
4553 exit 1
4654 ;;
4755esac
You can’t perform that action at this time.
0 commit comments