|
@@ -6,10 +6,10 @@ if [[ ${environment} == 'production' ]]; then |
|
|
echo "开始远程构建容器" |
|
|
echo "开始远程构建容器" |
|
|
docker stop ai-ops-wx || true |
|
|
docker stop ai-ops-wx || true |
|
|
docker rm ai-ops-wx || true |
|
|
docker rm ai-ops-wx || true |
|
|
docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat | awk '{print $3}') |
|
|
|
|
|
|
|
|
docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat | awk '{print $3}') |
|
|
#docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com |
|
|
#docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com |
|
|
docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com |
|
|
docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com |
|
|
docker pull registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$version |
|
|
|
|
|
|
|
|
docker pull registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat:$version |
|
|
docker run -p 6560:5000 -d -e environment=production -v /home/data/ai-ops-wx/logs:/app/logs --restart=always --name ai-ops-wx registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$version --environment=production; |
|
|
docker run -p 6560:5000 -d -e environment=production -v /home/data/ai-ops-wx/logs:/app/logs --restart=always --name ai-ops-wx registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$version --environment=production; |
|
|
#删除产生的None镜像 |
|
|
#删除产生的None镜像 |
|
|
docker rmi -f $(docker images | grep none | awk '{print $3}') |
|
|
docker rmi -f $(docker images | grep none | awk '{print $3}') |
|
|