Slide 1

Slide 1 text

How to manage containers in FiNC kenjiszk @JAWS-UG コンテナ支部 #8

Slide 2

Slide 2 text

Kenji Suzuki(@kenjiszk) •  SRE @FiNC

Slide 3

Slide 3 text

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.

Slide 4

Slide 4 text

Overall

Slide 5

Slide 5 text

Create basic Docker Image Dockerfiles are created for each combinaPon of OS x language.

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

What to do for new service •  Put Jenkinsfile on top directory of ApplicaPon •  Create New TaskDefiniPon & Service to ECS – image url – Environment variables

Slide 9

Slide 9 text

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.