Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Desenvolvendo e deployando aplicações PHP utili...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Juliana Fernandes
October 07, 2016
Technology
120
1
Share
Desenvolvendo e deployando aplicações PHP utilizando Docker
Juliana Fernandes
October 07, 2016
More Decks by Juliana Fernandes
See All by Juliana Fernandes
SOLID
littlejuh
0
69
Testes de Software
littlejuh
0
56
Construindo releases confiáveis com o uso de Canary Release.
littlejuh
0
81
Social Coding: Contribuindo, Aprendendo e Conhecendo Pessoas
littlejuh
0
68
Definindo uma estratégia de testes em um contexto de microserviços
littlejuh
0
38
Como evitar monolitos distribuídos
littlejuh
0
97
Short-Lived Branch Based Development
littlejuh
0
87
Acabando com as quebras de contrato nos seus micro-serviços
littlejuh
0
340
Compartilhando Experiências da ThoughtWorks University
littlejuh
0
110
Other Decks in Technology
See All in Technology
第26回FA設備技術勉強会 - Claude/Claude_codeでデータ分析 -
happysamurai294
0
370
Why we keep our community?
kawaguti
PRO
0
390
AI時代のIssue駆動開発のススメ
moongift
PRO
0
360
Cursor Subagentsはいいぞ
yug1224
2
140
Babylon.js を使って試した色々な内容 / Various things I tried using Babylon.js / Babylon.js 勉強会 vol.5
you
PRO
0
220
スケーリングを封じられたEC2を救いたい
senseofunity129
0
140
AWS DevOps Agent or Kiro の使いどころを考える_20260402
masakiokuda
0
150
GitHub Actions侵害 — 相次ぐ事例を振り返り、次なる脅威に備える
flatt_security
13
7.4k
推し活エージェント
yuntan_t
1
720
OPENLOGI Company Profile for engineer
hr01
1
62k
SSoT(Single Source of Truth)で「壊して再生」する設計
kawauso
2
420
【AWS】CloudTrail LakeとCloudWatch Logs Insightsの使い分け方針
tsurunosd
0
130
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
390
Typedesign – Prime Four
hannesfritz
42
3k
Designing for Timeless Needs
cassininazir
0
180
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
So, you think you're a good person
axbom
PRO
2
2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
330
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
460
Transcript
Desenvolvendo e deployando aplicações PHP utilizando Docker 1
Sobre nós Waldemar Neto @waldemarnt http://walde.co/ Juliana Fernandes @littlejuh_ https://github.com/littlejuh
https://speakerdeck.com/littlejuh 2
Componentes de uma aplicação PHP APP Extensions: Php5-mysql Mcrypt ...
Configurações: { Env: prod, Db_name: ... } 3
O que é Docker? 4
Alguns benefícios 5 Onboard rápido e fácil Sem conflitos na
app Consistência nos ambientes
Conceitos Dockerfile, build, containers e orquestração 6
Docker vs Maquinas Virtuais 7
Dockerfile FROM imagem RUN comando COPY copia arquivos do host
para a imagem CMD comando de saida 8
Imagem Docker FROM imagem RUN comando COPY copia arquivos do
host para a imagem CMD comando de saida 9
Cachê de camadas de imagens docker FROM imagem RUN outro
comando COPY copia arquivos do host para a imagem CMD comando de saida 10
Processo de Build Download da imagem base Comandos Imagem pronta
11
Containers 12
Volumes DADOS 13
Osquestração com docker-compose 14
Laravel PHP + Docker Configurando o Docker para apps PHP
15
Laravel 16
Criando Dockerfile 17
Processo de build 18
Docker Compose 19
NETWORK APP depends e volumes Servidor web porta 80 20
Sincronizando volumes Monta volume no container 21
Rodando comando externos 22
Outros comandos 23
Comandos customizados True ou false 24
Containers para executarem ações 25
Shipping to production! Pontos de atenção 26
Imagem como artefato 27
O mesmo ambiente em todo lugar GIT DEV QA PROD
CI/CD Registry 28
Orquestração em produção 29
Docker compose em produção Node docker compose APP • Facilidade
de usar em dev e prod • Focado em orquestração • Focado em uma máquina/node • Não possui health check • Possui downtime • Baixa resiliencia 30
Docker Swarm Docker Swarm Node 1 Node 2 Node 3
APP APP APP 31
Kubernetes Kubernetes master replication controller Node 1 Node 2 Node
3 POD APP POD APP APP POD 32
Referencias 33 • docker.com • laravel.com • kubernetes.io • leanpub.com/dockerparadesenvolvedores
• http://techfree.com.br • https://12factor.net
Valeu! Perguntas? @waldemarnt - @littlejuh_