1 Star 0 Fork 4

qwhacker/grid-studio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run.sh 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
# test if docker is (correctly) installed.
which docker >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "ERROR: `docker` command not found, please install docker first."
echo "For more information about docker installation, please visit: https://docs.docker.com/"
exit 1
fi
if [[ "$OSTYPE" == "msys" ]]; then
if [ ! "$(docker ps -a | grep gridstudio)" ]; then
WIN_PWD=$PWD
WIN_PWD=$(echo $WIN_PWD | sed -r 's/[/]+/\\/g')
WIN_PWD=$(echo $WIN_PWD | sed -r 's/\\([a-z])\\+/\U\1:\\/g')
docker run --name=gridstudio --rm=false -v $WIN_PWD\\grid-app:/home/source -v $WIN_PWD\\grid-app\\proxy\\userdata:/home/userdata -p 8080:8080 -p 4430:4430 ricklamers/gridstudio:release
else
echo "gridstudio container detected - starting container - want to do a full restart? Run destroy.sh first."
docker start gridstudio
fi
else
if [ ! "$(docker ps -a | grep gridstudio)" ]; then
docker run --name=gridstudio --rm=false -v $PWD/grid-app:/home/source -v $PWD/grid-app/proxy/userdata:/home/userdata -p 8080:8080 -p 4430:4430 ricklamers/gridstudio:release
else
echo "gridstudio container detected - starting container - want to do a full restart? Run destroy.sh first."
docker start gridstudio
fi
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qwhacker/grid-studio.git
git@gitee.com:qwhacker/grid-studio.git
qwhacker
grid-studio
grid-studio
master

搜索帮助