Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Desenvolvendo aplicações web com Flask e Docker
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
felipe
November 20, 2019
Technology
27
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Desenvolvendo aplicações web com Flask e Docker
felipe
November 20, 2019
More Decks by felipe
See All by felipe
Functional Programming with examples
felipemocruha
0
34
Aplicações Flask Resilientes com Envoy e Kubernetes
felipemocruha
0
41
Docker e Kubernetes
felipemocruha
0
55
Emacs
felipemocruha
0
22
Introdução a Python e seu Ecossistema
felipemocruha
0
23
Data Structures and Performance
felipemocruha
0
27
Observability
felipemocruha
0
37
Testes de Software
felipemocruha
0
24
Other Decks in Technology
See All in Technology
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
340
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
220
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
100
今さら理解するウェブフォントver.2026
takanorip
3
790
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
130
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
6k
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
Classmethod Company Deck
satoshi7
1
690
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
130
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
RailsConf 2023
tenderlove
30
1.6k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
Designing Experiences People Love
moore
143
24k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
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]