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 aplicações web com Flask e Docker
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
felipe
November 20, 2019
Technology
0
25
Desenvolvendo aplicações web com Flask e Docker
felipe
November 20, 2019
Tweet
Share
More Decks by felipe
See All by felipe
Functional Programming with examples
felipemocruha
0
29
Aplicações Flask Resilientes com Envoy e Kubernetes
felipemocruha
0
37
Docker e Kubernetes
felipemocruha
0
43
Emacs
felipemocruha
0
21
Introdução a Python e seu Ecossistema
felipemocruha
0
20
Data Structures and Performance
felipemocruha
0
24
Observability
felipemocruha
0
34
Testes de Software
felipemocruha
0
14
Other Decks in Technology
See All in Technology
プロジェクトマネジメントをチームに宿す -ゼロからはじめるチームプロジェクトマネジメントは活動1年未満のチームの教科書です- / 20260304 Shigeki Morizane
shift_evolve
PRO
1
250
親子 or ペアで Mashup for the Future! しゃべって楽しむ 初手AI駆動でものづくり体験
hiroramos4
PRO
0
110
白金鉱業Meetup_Vol.22_Orbital Senseを支える衛星画像のマルチモーダルエンベディングと地理空間のあいまい検索技術
brainpadpr
2
290
元エンジニアPdM、IDEが恋しすぎてCursorに全業務を集約したら、スライド作成まで爆速になった話
doiko123
1
600
脳内メモリ、思ったより揮発性だった
koutorino
0
250
事例に見るスマートファクトリーへの道筋〜工場データをAI Readyにする実践ステップ〜
hamadakoji
1
290
Evolution of Claude Code & How to use features
oikon48
1
590
GitLab Duo Agent Platform + Local LLMサービングで幸せになりたい
jyoshise
0
290
マルチアカウント環境でSecurity Hubの運用!導入の苦労とポイント / JAWS DAYS 2026
genda
0
520
類似画像検索モデルの開発ノウハウ
lycorptech_jp
PRO
5
1.1k
AI は "道具" から "同僚" へ 自律型 AI エージェントの最前線と、AI 時代の人材の在り方 / Colleague in the AI Era - Autonomous AI Seminar 2026 at Niigata
gawa
0
150
DevOpsエージェントで実現する!! AWS Well-Architected(W-A) を実現するシステム設計 / 20260307 Masaki Okuda
shift_evolve
PRO
3
620
Featured
See All Featured
Building an army of robots
kneath
306
46k
Site-Speed That Sticks
csswizardry
13
1.1k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
130
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
380
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
82
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
390
The Language of Interfaces
destraynor
162
26k
Transcript
Desenvolvendo aplicações web com Flask e Docker
Conteúdo ➔ O que é Docker e porque isso importa
➔ Estruturando a aplicação ➔ Build e Deploy ➔ Aplicação de exemplo* 1
O que é Docker | VMs vs Docker 2 Fonte:https://docs.docker.com/get-started/#containers-and-virtual-machines
O que é Docker | Arquitetura 3 Fonte: https://docs.docker.com/engine/docker-overview/#docker-architecture
O que é Docker | Imagens e Containers 4 11cd0b38bc34c
0B 582eca42208a3 64B 4c80de2f429bb 276MB 329b145c4ace1 0B h34kh33ld0dd2 9.28kB R/W Layer Container Layer Image Layers
Porque isso importa 5 Python Libs Code Python Libs Code
OS / Environment Virtualenv Docker
Estruturando a aplicação
12 factor app 1. Codebase 2. Dependencies 3. Config 4.
Backing Services 5. Build, release, run 6. Processes 6 7. Port Binding 8. Concurrency 9. Disposability 10. Dev/prod parity 11. Logs 12. Admin Processes
Isolamento de dependências 7
Utilizando logs 8
Bancos de dados como serviços de apoio 9
Build e Deploy
Criando um Dockerfile 10 11cd0b38bc34c 5MB 582eca42208a3 200kB 4c80de2f429bb 276MB
Criando uma imagem do Docker 11
Executando um container 12
Armazenando no Docker Hub 13
Dicas para produção ➔ Use load balancers e/ou proxies reversos
➔ Utilizar um orquestrador de containers (Kubernetes, Swarm, Mesos…) ➔ Seguir boas práticas na criação de imagens ➔ Criar volumes persistentes para os dados ➔ Criar imagens com responsabilidades pequenas 14
Onde encontrar mais ➔ Documentação oficial do Docker - https://docs.docker.com
➔ Creating Effective Docker Images - https://www.youtube.com/watch?v=vlS5EiapiII ➔ 12 factor app - https://12factor.net/ ➔ Miguel Grinberg’s blog - https://blog.miguelgrinberg.com/ ➔ awesome-docker https://github.com/veggiemonk/awesome-docker ➔ https://github.com/humiaozuzu/awesome-flask 15
Obrigado https://gitlab.com/felipemocruha/flask-conf-2018
[email protected]