Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to manage containers in FiNC

How to manage containers in FiNC

JAWS-UG コンテナ支部 #8でのLT資料です

Kenji Suzuki

May 16, 2017
Tweet

More Decks by Kenji Suzuki

Other Decks in Programming

Transcript

  1. Environment •  Microservices – Tons of services, and increasing. – Many teams

    develop in parallel. – Requirements. •  Easy to setup new service. •  MulP development environment. – Use Amazon ECS to resolve above.
  2. Test by Jenkinsfile •  Jenkins –  Jenkins 2 –  Github

    OrganizaPon •  Jenkinsfile –  At home dir in applicaPon –  All build seYngs –  Pipeline •  Build steps •  Test is executed in Slaves –  docker-compose •  Launch env by docker-compose •  Build docker image a]er test pass
  3. Deploy to ECS •  TaskDefiniPon –  Update TaskDefiniPon •  Test

    passed image •  Deploy to 3 Clusters –  Deploy Task •  deploy at first •  execute some task (migrate, etc…) –  Web •  run applicaPon process •  ALB connected –  Batch •  Batch and daemon
  4. What to do for new service •  Put Jenkinsfile on

    top directory of ApplicaPon •  Create New TaskDefiniPon & Service to ECS – image url – Environment variables
  5. MulP Development Environment •  ApplicaPon –  Use environment variables in

    configure. •  ECS –  Use same docker image but different environment variables. –  Each environment has each TaskDefiniPon. –  Easy to launch a independent set of microservices for big feature or QA.