php - amazon elastic beanstalk eb local run with problems in my machine -


error: can use "eb local" reconfigured, generic , multi container docker platforms.

i want create multi container docker container web server on amazon. have created reconfigured - generic - multi container environment on amazon. trying run command test dockerrun.aws.json file before deploy not working

i have tested amazon's example dockerrun didn't work

dockerrun.aws.json

{ "awsebdockerrunversion": 2, "volumes": [     {         "name": "php-app",         "host": {             "sourcepath": "/var/app/current/php-app"         }     },     {         "name": "nginx-proxy-conf",         "host": {             "sourcepath": "/var/app/current/proxy/conf.d"         }     } ], "containerdefinitions": [     {         "name": "php-app",         "image": "php:fpm",         "essential": true,         "memory": 128,         "mountpoints": [             {                 "sourcevolume": "php-app",                 "containerpath": "/var/www/html",                 "readonly": true             }         ]     },     {         "name": "nginx-proxy",         "image": "nginx",         "essential": true,         "memory": 128,         "portmappings": [             {                 "hostport": 80,                 "containerport": 80             }         ],         "links": [             "php-app"         ],         "mountpoints": [             {                 "sourcevolume": "php-app",                 "containerpath": "/var/www/html",                 "readonly": true             },             {                 "sourcevolume": "awseb-logs-nginx-proxy",                 "containerpath": "/var/log/nginx"             },             {                 "sourcevolume": "nginx-proxy-conf",                 "containerpath": "/etc/nginx/conf.d",                 "readonly": true             }         ]     } ] } 

there bug in eb cli blocking use of default_platform: multi-container docker 17.03.1-ce (generic) . can find more here https://pypi.python.org/pypi/awsebcli/3.10.4 update eb cli before go further.

what's more, if created aws beanstalk application in aws console (with browser) , kinda imported eb init, there's small change in .elasticbeanstalk/config.yml causing eb local run fail message

error: can use "eb local" reconfigured, generic , multi container docker platforms.  

for instance, in config.yml imported application created aws console, i've got

default_platform: arn:aws:elasticbeanstalk:eu-west-1::platform/multi-container docker running on 64bit amazon linux/2.7.4 

just change be

default_platform: multi-container docker 17.03.1-ce (generic) 

and you're ready go!

tip: if there's reason don't want update eb cli use

default_platform: multi-container docker 1.11.2 (generic) 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -