Commit 25ffcf36 authored by TonyFord's avatar TonyFord
Browse files

add removeall

parent 418c726e
......@@ -6,6 +6,7 @@ stages:
- stop
- uninstall
- remove
- removeall
build-explorer:
stage: build
......@@ -96,12 +97,26 @@ remove-explorer:
refs:
- master
variables:
- $CMD =~ /remove/
- $CMD =~ /^remove$/
before_script:
- chmod +x setenv && . setenv
script:
- deploy/remove
removeall-explorer:
stage: removeall
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /^removeall$/
before_script:
- chmod +x setenv && . setenv
script:
- deploy/removeall
status-explorer:
stage: status
tags:
......
......@@ -5,5 +5,6 @@ echo -e "deploy/start \t\t( start container )"
echo -e "deploy/stop \t\t( stop container )"
echo -e "deploy/install \t( run steps build + start + new_ssl )"
echo -e "deploy/uninstall \t( stop and remove container, named volumes will NOT removed )"
echo -e "deploy/remove \t\t( stop and remove container and images, named volumes WILL REMOVED )"
echo -e "deploy/remove \t\t( stop and remove container, named volumes WILL REMOVED )"
echo -e "deploy/removeall \t\t( stop and remove container and images, named volumes WILL REMOVED )"
echo ""
#!/bin/bash
docker-compose stop
docker-compose down -v --rmi all --remove-orphans
docker-compose down -v --remove-orphans
#!/bin/bash
docker-compose stop
docker-compose down -v --rmi all --remove-orphans
......@@ -53,4 +53,5 @@ chmod +x deploy/stop
chmod +x deploy/install
chmod +x deploy/uninstall
chmod +x deploy/remove
chmod +x deploy/removeall
chmod +x deploy/help
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment