AWS EB部署错误:AppDeployEnactHook / 03start-task.sh:活动失败

时间:2018-09-25 13:54:03

标签: amazon-web-services docker docker-compose amazon-elastic-beanstalk

我一直在尝试以最简单的方式将多容器Docker环境部署到AWS Elastic Beanstalk。我已将创建构成docker-compose.yml的容器的Docker映像上载到各个公共Docker集线器存储库(例如* myusername / production_app,myusername / production_celery,myusername / postgres,myusername / production_client)。

“ docker-compose up”成功运行(docker-compose日志中没有错误)

接下来,我基于docker-compose.yml创建下面的Dockerrun.aws.json,创建了一个新的Elastic Beanstalk应用程序,并在创建网络服务器环境时继续上载此文件。

但是,应用程序部署失败并出现以下错误:

  

XXXX / StartupStage1 / AppDeployEnactHook / 03start-task.sh]:活动   失败。

Dockerrun.aws.json

{
 "AWSEBDockerrunVersion": 2,
 "containerDefinitions": [
    {
      "name": "app",
      "image": "myusername/production_app",
      "essential": true,
      "memoryReservation": 200,
      "portMappings": [
        {
          "hostPort": 5000,
          "containerPort": 5000
        }
    },
    {
      "name": "celery",
      "image": "myusername/production_celery",
      "essential": true,
      "memoryReservation": 200,
    },
     {
      "name": "client",
      "image": "myusername/production_client",
      "essential": true,
      "memoryReservation": 200,
       "portMappings": [
        {
          "hostPort": 3007,
          "containerPort": 3000
        }
      ]
    },
    {
      "name": "postgres",
      "image": "myusername/postgres",
      "essential": true,
      "memoryReservation": 200,
       "portMappings": [
        {
          "hostPort": 5432,
          "containerPort": 5432
        }
      ]
    }
 ]
}

0 个答案:

没有答案