跳转到主要内容

ECS服务的有意见部署应用程序

项目描述

为ECS服务提供有意见的部署应用程序。

在执行ecs-pipeline-deploy时,将检查集群中当前服务的当前任务定义。

如果标签不同,它将

  1. 修改现有的任务定义,替换任务定义中的镜像

  2. 更新服务以使用新的任务定义

  3. 可选地等待新的标签上线并运行,以及其他服务的所有任务定义停止。

如果标签相同,如果指定了--redeploy,则可选地重新部署服务; 或者 可选地复制任务定义到新的任务定义,并使用 —force 参数作为如果标签不同进行部署; 或者 如果镜像标签匹配且未指定--redeploy--force,则错误退出。

用法

usage: ecs-pipeline-deploy [-h] [-f] [-r] [-w] [-o] [-d DELAY] [-v] [-V]
                           [CLUSTER] [SERVICE] [IMAGE]

Opinionated ECS deployment made easy

positional arguments:
  CLUSTER               The ECS cluster name to deploy in (default: None)
  SERVICE               The ECS Service name to deploy (default: None)
  IMAGE                 The Docker image (with tag) to deploy for finding the
                        task definition (default: None)

optional arguments:
  -h, --help            show this help message and exit
  -f, --force           Create a new task definition for the image even if one
                        already exists for the tagged version (default: False)
  -r, --redeploy        Force a redeployment if the tagged images match
                        (default: False)
  -w, --wait            Wait for running tasks to be replaced (default: False)
  -o, --only-new        If waiting, wait for only newly deployed tasks to be
                        running (default: False)
  -d DELAY, --delay DELAY
                        Seconds to delay before checking tasks while waiting
                        on a deployment to finish (default: 5)
  -v, --verbose
  -V, --version         show program's version number and exit

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

ecs-pipeline-deploy-0.5.1.tar.gz (8.0 kB 查看哈希值)

上传时间 源代码

由以下支持