Browse Source

config:docker

dev-minio
dashan 12 months ago
parent
commit
d31ec4726c
  1. 2
      .drone.yml
  2. 7
      docker/deploy.sh

2
.drone.yml

@ -30,7 +30,7 @@ steps:
- cd /mnt/app/build/docker - cd /mnt/app/build/docker
- chmod +x deploy.sh - chmod +x deploy.sh
- sh deploy.sh stop - sh deploy.sh stop
- sh deploy.sh rm - sh deploy.sh build
- sh deploy.sh module - sh deploy.sh module
- docker ps - docker ps

7
docker/deploy.sh

@ -53,6 +53,10 @@ rm(){
docker-compose rm ds-gateway ds-miniapps docker-compose rm ds-gateway ds-miniapps
} }
build(){
docker-compose build ds-gateway ds-miniapps
}
# 根据输入参数,选择执行对应方法,不输入则执行使用说明 # 根据输入参数,选择执行对应方法,不输入则执行使用说明
case "$1" in case "$1" in
@ -77,6 +81,9 @@ case "$1" in
"rmbase") "rmbase")
rmbase rmbase
;; ;;
"build")
build
;;
*) *)
usage usage
;; ;;

Loading…
Cancel
Save