多容器beanstalk部署与预构build图像只
我有一个CI系统已经安装,build立并推动docker图像到ECR。 在Dockerrun.aws.json文件中,我使用这些图像(链接)来运行多docker容器beanstalk环境。 示例Dockerrun.aws.json { "AWSEBDockerrunVersion": 2, "volumes": [ { "name": "web-app", "host": { "sourcePath": "/var/app/current/web-app" } }, { "name": "api-service", "host": { "sourcePath": "/var/app/current/api-service" } } ], "containerDefinitions": [ { "name": "api-service", "image": "somekey.dkr.ecr.us-west-2.amazonaws.com/api-service", "essential": true, "memory": 800, "privileged": true, "portMappings": [ { "hostPort": 8080, "containerPort": 80 } ], "command": [ "/bin/bash", "/root/api-service/before_run.sh" ], "mountPoints": […]