mardi 24 mars 2015

Run one app on multiple elastic beanstalk instances

I have one Flask app which handles a number of things which are common to a number of elastic beanstalk applications: logging, database/ORM, error handling, are all handled by Flask, and similar across elastic beanstalk instances.


I have four eb applications, which each do different jobs, demand different docker images, and so on.


One approach would be have each eb app target its own unique endpoint on the Flask App and follow its own unique code path, while sharing common resources, such as the ORM and error handling.


Is this possible? The big limitation seems to be one Dockerfile per project, which has a fixed name, and sets the image. I would rather be able to specify the Dockerfile-path at deploy-time.


Is this even a reasonable approach to take?





Aucun commentaire:

Enregistrer un commentaire