update Makefile def.

This commit is contained in:
kaichao 2023-04-13 16:31:56 +08:00
parent 58467149ba
commit d877b28037
2 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ jobs:
parameters:
start_message: ANY
paths:
- /:/data
- /:/local
rsyncd-ssh:
base_image: hub.cstcloud.cn/scalebox/rsyncd
@ -26,4 +26,4 @@ jobs:
parameters:
start_message: ANY
paths:
- /:/data
- /:/local

View File

@ -21,10 +21,9 @@ default:
all: reset import
reset: down
@# docker ps -a|grep -v CONTAINER|awk '{print $$1}'| while read line; do docker rm -f $$line;done
@ rm -rf ${HOME}/.scalebox/log/cli
@ mkdir -p ${HOME}/.scalebox/log/cli
@ docker volume rm -f cluster_pgdata
@ docker volume rm -f server_pgdata
@ docker-compose up -d
@ sleep 25
@ -39,6 +38,8 @@ up:
down:
@ docker-compose down
@ # clear all containers
@ docker ps -a|grep -v CONTAINER|awk '{print $$1}'| while read line; do docker rm -f $$line;done
clean:
@ pdsh -w $(NODES) 'docker rm -f $$(docker ps -qa)' | dshbak -c