对AWS ECS进行故障排除

时间:2019-01-29 11:11:15

标签: amazon-ecs aws-code-deploy

在运行代码管道时,出现了一个错误,我无法做出决定。我该如何解决?

enter image description here

这是我的ECS部署设置 enter image description here

这是我的buildspec.yml

version: 0.2

phases:
  install:
    commands:
      - $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
  pre_build:
    commands:
      - echo copying .htaccess and robots.txt
      - yes | cp -rf config/$XX/.htaccess www/.htaccess
      - yes | cp -rf config/$XX/robots.txt www/robots.txt
  build:
    commands:
      - echo Build started on `date`
      - echo Building the Docker image...
      - docker build -t xx/yy-zz -f Dockerfile.newrelic .
      - docker tag xx/yy-zz:latest 1234.dkr.ecr.ap-southeast-1.amazonaws.com/xx/yy-zz:latest
  post_build:
    commands:
      - echo Build completed on `date`
      - echo Pushing the Docker image...
      - docker push 1234.dkr.ecr.ap-southeast-1.amazonaws.com/xx/yy-zz:latest
      - printf '[{"name":"xxx","imageUri":"%s"}]' xxx.dkr.ecr.ap-xx-1.amazonaws.com/xx/yy-zz:latest > imagedefinitions.json

artifacts:
  files:
    - '**/*'

1 个答案:

答案 0 :(得分:0)

我找出了原因。我达到了代码部署的极限。它太大了,所以我要求亚马逊支持以增加它

enter image description here

相关问题