Skip to content

vivekyad4v/aws-elasticbeanstalk-multi-container

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

LinkedIn

AWS-ElasticBeantsalk-MultiContainer

Dockerrun version:'2', deploy docker images to ECS using ElasticBeanstalk

Python API - Dockerrun.aws.json.python.api.tmpl

  • AWS Dockerrun version:2 template

  • Multiple container definitions - volumes, memory, ports, command etc

  • ENV variables for deployment -

    | ACCOUNT_ID  | AWS account ID |
    | ENVIRON     | dev, uat, prod etc |
    | NGINXM      | Nginx server memory in MB |
    | WSGIM       | API(python) server memory in MB |
    | APP_ENV     | ElasticBeanstalk environment name |
    | BUILD_TAG   | Tag name/no. of your deployment |
    | GIT_COMMIT  | Git #commit |
    
  • Depoyment

$ sed -e "s/\${ACCOUNT_ID}/${ACCOUNT_ID}/" -e "s/\${ENVIRON}/${ENVIRON}/" -e "s/\${NGINXM}/${NGINXM}/" -e "s/\${WSGIM}/${WSGIM}/" Dockerrun.aws.python.api.json.tmpl > Dockerrun.aws.json

$ eb deploy $APP_ENV -l ${BUILD_TAG}_${GIT_COMMIT} --timeout 30

About

AWS Elasticbeanstalk Multi Container deployment JSON templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published