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: @@ -30,7 +30,7 @@ steps:
- cd /mnt/app/build/docker
- chmod +x deploy.sh
- sh deploy.sh stop
- sh deploy.sh rm
- sh deploy.sh build
- sh deploy.sh module
- docker ps

7
docker/deploy.sh

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

Loading…
Cancel
Save