Elastic Beanstalk worker tiers with docker sample for NodeJS
Inspired from
- https://github.com/imaifactory/eb-worker-sample
- https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
- Create an Elastic Beanstalk application with
- worker tiers model : http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-tiers.html
- single container docker type : http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/docker-singlecontainer-deploy.html
- Upload the content of this projet as an application version
- Deploy to your environment
- Send some messages to the SQS queue associated with your worker application
- Get the logs to see the results
If you activate cloudwatch log uploads, you will see all logs in cloudwatch, including eb, docker, and the nodejs server logs.
.ebextension/01-dockerrun.config shows a workaround for running docker with "--privileged" flag
this is absolutely not needed for this sample to work, but i included it here as a reference to solve this issue : aws-samples/eb-docker-virtual-hosting#1