Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
也许这样的东西
run_docker() { docker run -p "$1:$1" --env PORT:"$1" -d --name demoapp sample/demoapp docker run -p "$2:$2" --env PORT:"$2" -d --name demoapp sample/demoapp } case "$BRANCH" in DEV) run_docker 8001 8002 ;; QA) run_docker 4001 4002 ;; PROD) run_docker 81 82 ;; *) echo "unknown branch: $BRANCH" >&2; exit 1 ;; esac
Perhaps something like this
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
也许这样的东西
Perhaps something like this