2 Star 1 Fork 1

一往直前/xswitch-free

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.cmd 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
@echo off
setlocal
if ""%1"" == ""setup"" goto doSetup
if ""%1"" == ""run"" goto doRun
if ""%1"" == ""start"" goto doStart
if ""%1"" == ""bash"" goto doBash
if ""%1"" == ""cli"" goto docli
if ""%1"" == ""logs"" goto doLogs
if ""%1"" == ""stop"" goto doStop
if ""%1"" == ""pull"" goto doPull
if ""%1"" == ""PHONY"" goto doPHONY
if ""%1"" == ""eject"" goto doEject
echo Usage: build ( commands ...)
echo commands:
echo setup make .env file from the env.example if it not exist
echo run use docker-compose command to start the xswitch-free container with detached running
echo start use docker-compose command to start the xswitch-free container with foreground running
echo bash go into the xswitch-free container with bash
echo cli go into the xswitch-free container with fs_cli
echo logs catch the xswitch-free container logs
echo stop stop xswitch-free container
echo pull get the xswitch-free image
echo PHONY get the xswitch-free container's config
echo eject tips
goto end
:doSetup
if not exist .env (
copy env.example .env
)
goto end
:doRun
docker-compose up -d
goto end
:doStart
docker-compose up
goto end
:doBash
docker exec -it xswitch-free bash
goto end
:docli
docker exec -it xswitch-free fs_cli
goto end
:doLogs
docker logs -f --tail=100 xswitch-free
goto end
:doStop
docker stop xswitch-free
goto end
:doPull
docker pull ccr.ccs.tencentyun.com/xswitch/xswitch-free
goto end
:doPHONY
docker cp xswitch-free:/usr/local/freeswitch/conf .
goto end
:doEject
echo conf copied to local dir, please edit docker-compose.yml to use it
goto end
:end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/JayLi2000/xswitch-free.git
git@gitee.com:JayLi2000/xswitch-free.git
JayLi2000
xswitch-free
xswitch-free
master

搜索帮助