amazon web services - Where to put ebextensions config in AWS Elastic Beanstalk Docker deploy with dockerrun source bundle? -
i having trouble getting docker elastic beanstalk deploy read .ebextensions/setup.config file.
the documentation eb environment configuration says:
you can include 1 or more configuration files source bundle. configuration files must named extension .config (for example, myapp.config) , placed in .ebextensions top-level directory in source bundle.
however looks docker source bundle not .zip
or .war
file, .json
file, e.g., docs create dockerrun.aws.json file—and looks source bundle?
in creating version of app upload custom dockerrun-$version.aws.json
file s3 , run following (where $app
versioned dockerrun json file):
aws elasticbeanstalk create-application-version \ --application-name $app_name \ --version-label $version \ --source-bundle s3bucket=$s3_bucket,s3key=$s3_path/$app
so… how .ebextensions directory going found in top-level directory of source bundle when “bundle” json file ends building container? (my first attempt put in root of project, didn’t work.)
if using .json file docker deploys, cannot use .ebextensions.
you can create zip contains .json , .ebextension directory , should work. use zip deployment artifact instead of raw json.
Comments
Post a Comment