浏览代码

调整

develop
H Vs 2 个月前
父节点
当前提交
b98bff5908
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. +2
    -2
      docker/Dockerfile.latest
  2. +3
    -3
      setup_production.sh

+ 2
- 2
docker/Dockerfile.latest 查看文件

@@ -25,8 +25,8 @@ RUN apt-get update \
&& cd ${BUILD_PREFIX} \
&& cp config-template.json config.json \
&& /usr/local/bin/python -m pip install --no-cache --upgrade pip \
&& pip install --no-cache -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
&& pip install --no-cache -r requirements.txt
WORKDIR ${BUILD_PREFIX}

ADD docker/entrypoint.sh /entrypoint.sh


+ 3
- 3
setup_production.sh 查看文件

@@ -2,7 +2,7 @@
image_version=$version
# 删除镜像
docker rmi -f $(
docker images | grep registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat | awk '{print $3}'
docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat | awk '{print $3}'
)
# 构建telpo/mrp:$image_version镜像
docker build -f ./docker/Dockerfile.latest . -t ssjl/ai-ops-wechat:$image_version
@@ -11,8 +11,8 @@ docker build -f ./docker/Dockerfile.latest . -t ssjl/ai-ops-wechat:$image_versio
echo '=================开始推送镜像======================='
#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 tag ssjl/ai-ops-wechat:$image_version registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$image_version
docker push registry.cn-shanghai.aliyuncs.com/ssjl/ai-ops-wechat:$image_version
docker tag ssjl/ai-ops-wechat:$image_version registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat:$image_version
docker push registry.cn-shanghai.aliyuncs.com/gps_card/ai-ops-wechat:$image_version
echo '=================推送镜像完成======================='
#删除产生的None镜像
docker rmi -f $(docker images | grep none | awk '{print $3}')


正在加载...
取消
保存