auto deploy symfony app with codeship and elastic beanstalk
TRANSCRIPT
![Page 2: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/2.jpg)
CEO at Lazy Ants
Founder filecessor.com
Organizer .com.ua
![Page 3: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/3.jpg)
Docker?
![Page 4: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/4.jpg)
![Page 5: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/5.jpg)
![Page 6: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/6.jpg)
![Page 7: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/7.jpg)
VM’s vs Containers?
![Page 8: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/8.jpg)
![Page 9: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/9.jpg)
What is container?• namespaces: user, pid, netns, …
— is what you can use• cgroups: memory, CPU, IO,
network, devices, … — is how much you can use
• copy to storage• …
![Page 10: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/10.jpg)
Any system where docker live is already
containerized
![Page 11: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/11.jpg)
Dev? There’s no Dev stage
![Page 12: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/12.jpg)
There’s only Production.
![Page 13: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/13.jpg)
Infrastructure is Important part of
service
![Page 14: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/14.jpg)
Docker Compose to the rescue
![Page 15: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/15.jpg)
Core Concept
![Page 16: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/16.jpg)
One container per service
![Page 17: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/17.jpg)
symfony nginx
Containers
mysql php-fpm
![Page 18: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/18.jpg)
Docker Compose orchestrating container
dependancies
![Page 19: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/19.jpg)
Dev is same as Prod
![Page 20: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/20.jpg)
> docker-compose build> docker-compose up -d> docker-compose stop> docker-compose run> docker-compose rm> docker-compose ps> docker-compose logs
Commands sheet
![Page 22: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/22.jpg)
runAWS Elastic Beanstalk
Steps
![Page 23: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/23.jpg)
setup CICodeship or Circleci
Steps
![Page 24: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/24.jpg)
git push hope your test are green
Steps
![Page 25: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/25.jpg)
Voila!you turn
![Page 27: Auto deploy symfony app with codeship and elastic beanstalk](https://reader031.vdocument.in/reader031/viewer/2022021502/58f07f7d1a28ab261f8b460f/html5/thumbnails/27.jpg)
Below links help me a lot
• https://docs.docker.com/engine/getstarted• https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/• https://documentation.codeship.com/• https://pages.codeship.com/docker• https://circleci.com/docs/docker/