3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
image from a Dockerfile? Run the following commands in your terminal 1. docker build -t "stockreader:dockerfile" . -> Build the docker image from a Dockerfile (tag the image) 2. docker images -> Check the image has been generated. 3. docker run -it stockreader:dockerfile python3 src/stockreader.py config-standalone.toml -> Run the a docker container based on the image.
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
create -d amazonec2 --amazonec2-vpc-id <your-vpc-id> stockreader -> Create a new EC2 instance in AWS. 2. docker-machine env stockreader -> Print export commands. 3. eval $(docker-machine env stockreader) -> point docker machine to the remote node. 2. What is Docker Machine?
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
Code: Run the following commands in your terminal 1. eval $(docker-machine env stockreader) -> point docker machine to the remote node. 2. docker-compose build -> build the images you defined. 3. docker-compose up -d -> run the services you defined.
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
monitoring 1. Application monitoring • Is the system dead or alive? Monit • How is the system doing? Collectd + InfluxDB + Grafana 2. Docker container monitoring https://github.com/google/cadvisor
How is the system doing? Collectd + InfluxDB + Grafana 1. Collectd: daemon to collect system metrics 2. InfluxDB: time series database 3. Grafana: metrics and time series visualization tool Collectd 1 Collectd n InfluxDB Grafana
monitoring cAdvisor (Container Advisor) It is a running daemon that: Information about running containers 1. Collects 2. Aggregates 3. Processes 4. Exports
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
using Docker? What if we need to scale our deployment from 2 nodes to 5 nodes? • How to connect containers between different nodes? What if we need to scale only one (docker compose) service? • How to expose the new service containers to the internet? • Load balancing? What if we need to autoscale our docker deployment? • How should be responsible for monitoring and take action?
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
3. What is Docker Compose? 4. How to dockerize an application? 5. How to deploy an application to AWS using Docker? 6. How to monitor a dockerized application? 7. Next steps: how to scale an application in AWS using Docker? 8. Q&A 9. References
Monitor. (n.d.). Retrieved November 13, 2016, from http://www.merriam-webster.com/dictionary/monitor https://technologyconversations.com/2016/11/07/collecting-metrics-and-monitoring-the-cluster/