Skip to content

Commit 7a10b6a

Browse files
committed
Add more helper commands
1 parent 6ab1d8c commit 7a10b6a

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

hpcts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@ start() {
1818
}
1919

2020
stop() {
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

2732
cleanup() {
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
;;
4755
esac

0 commit comments

Comments
 (0)