Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

20190521 これから始めるコンテナワークロード - コンテナ化ベストプラクティス -

891 views

Published on

20190521 これから始めるコンテナワークロード
- コンテナ化ベストプラクティス -

Published in: Technology
  • Be the first to comment

20190521 これから始めるコンテナワークロード - コンテナ化ベストプラクティス -

  1. 1. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Yasuhiro Hara (@toricls) Specialist Solutions Architect, Containers Amazon Web Services Japan May 21 2019 - -
  2. 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Yasuhiro Hara(@toricls) Specialist Solutions Architect, Containers Amazon Web Services Japan ERP R&D SDE UI SaaS SI + MSP AWS AWS Fargate, AWS Lambda Web Twitter
  3. 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. … • Docker ECS/Fargate • • or or • … • •
  4. 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Agenda
  5. 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  6. 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 4 1. • Choose “the right tools for the right job” • 2. • • 4. •
  7. 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  8. 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Run Anywhere • • Portability • • (build) (push) (pull) • Isolated processes •
  9. 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Run Anywhere • Portability • Isolated processes → CI/CD →
  10. 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • • • • • •
  11. 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  12. 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • • • • • • •
  13. 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • • • • • • •
  14. 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD
  15. 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD
  16. 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD 1st Milestone
  17. 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1st Milestone - • • •
  18. 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1st Milestone - • • • • e.g. AWS Lambda • Lambda
  19. 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1st Milestone - • • • • • • • • • •
  20. 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1st Milestone - • • • • • • • • • • •
  21. 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1st Milestone - • • • • • • $(aws ecr get-login –no-include-email) && docker push ${YOUR_IMAGE}:latest • aws ecs update-service --cluster ${YOUR_ECS_CLUSTER} --service ${YOUR_ECS_SERVICE} --force-new-deployment https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/developerguide/ECS_GetStarted_Fargate.html
  22. 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 1st Milestone - • { "family": "your-task-name", "cpu": "256", "memory": "512", "networkMode": "awsvpc", "containerDefinitions": [ { "name": "your-container-name", "image": "busybox", "cpu": 256, "memoryReservation": 512, "portMappings": [{ "containerPort": 80 }] } ], "requiresCompatibilities": [ "FARGATE" ] }
  23. 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD 2nd Milestone
  24. 24. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 2nd Milestone - • • • •
  25. 25. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 2nd Milestone - • • • EC2 • • •
  26. 26. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD 3rd Milestone
  27. 27. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 3rd Milestone - CI/CD • •
  28. 28. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 3rd Milestone - • CI/CD • • • • • • • • • • CI/CD
  29. 29. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - 3rd Milestone - • • • • • • • Security Group/NACL • • IAM • • • •
  30. 30. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD
  31. 31. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. - - • • • • •
  32. 32. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  33. 33. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CI/CD
  34. 34. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • •
  35. 35. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • •
  36. 36. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! Yasuhiro Hara (@toricls) Specialist Solutions Architect, Containers Amazon Web Services Japan

×